
3-24 Registering Extensions
3-24
3.6.2 Registering Extensions
Written in Visual Basic
Extensions written in Visual Basic may be run from within Visual
Basic, or may be compiled to an ActiveX DLL file. Either way,
Visual Basic takes care of registering half of the information
required for HYSYS to find the extension. The HYSYS
registration tool provided in the Session Preferences property
view may be used to register the other half.
Running Within Visual Basic
If you are running your extension within the Visual Basic
environment, Visual Basic temporarily adds information to the
registry every time the project is run. This information changes
every time you run the project. The extra information needed
can be added by going to the Extensions tab of the Session
Preferences property view and registering the EDF file. When
run this way, information about where to find an extension is
added to the registry, but information on how to create it is not.
Compiled DLL Files
When you compile your extension to an ActiveX DLL file, you
must do both parts of the registration. You can use the
procedure described in the Section 3.6.1 - Registering
Extensions Written in C++ to register the DLL files in the
HYSYS Session Preferences.
HYSYS loads the DLL file and registers it, and then it takes the
name of the DLL file and looks for an Extension Definition File
with the same name in the same directory to complete the
registration.
To view EDF files in Select an Extension to be Registered
property view, you must change the settings in the File Filter
drop-down list from Application Extensions (*.dll) to
Extension Definition Files (*.edf).
Refer to Section 3.6.1 -
Registering
Extensions Written in
C++, for the step by
step procedure for
registering HYSYS
extensions.
Komentáře k této Příručce