Specifications

A-10 Extensibility FAQ
A-10
A.2 Extensibility FAQ
A.2.1 General Extensibility
1. What is the difference between registering the EDF instead
of the DLL?
Ans: Registering the EDF allows you to interactively run and
debug the extension using Visual Basic. However, a warning
message will appear since no DLL was registered. If you
want to interactively run and debug the reaction extension,
use the following sequence:
a. Register the EDF file. This displays a warning message
which you can ignore.
b. Click the Run button in Visual Basic. This brings up the
debug property view.
c. Load HYSYS and add a reaction.
If everything is working properly, your reaction extension
will appear in the list. During this time, you can switch to
Visual Basic and add breakpoints to check variable values,
debug, etc. Once you are complete with debugging and want
the reaction extension to be available, use the following
sequence:
a. Compile the reaction extension into a DLL.
b. Register the DLL file.
c. Load HYSYS and add a reaction. If everything is working
properly, your reaction extension will appear in the list.
2. How can I interactively run an extension?
Ans: Use the following procedure:
a. Register the extension definition file (EDF).
b. Load the extension Visual Basic project (VBP) file, select
Project command from the View menu and double-click
on the class module (the file will have the *.cls suffix).
c. Right-click on an appropriate line of code and select
Toggle command - Breakpoint sub-command from the
Object Inspect menu. The line turns red, indicating a
breakpoint at which the execution of the code will be
paused.