
Extensibility 3-21
3-21
proprietary information or methods.
To distribute your extension, you must provide the DLL file, the
EDF file, and any other files required by your extension (i.e., a
separate FORTRAN DLL called from you extension). You must
register your extension on each individual machine that uses the
extension calculations. You can use the registration tool found
on the Extensions tab of the Session Preferences property view
for this, or you can include this step in your own setup program.
3.6 Registering Extensions
In order for HYSYS to find extensions, they must be registered
in the Extensions tab of the Session Preferences property view.
HYSYS looks for extensions in the:
HKEY_CLASSES_ROOT\Software\AspenTech\HYSYS\1.1\Extension
s key.
Each extension should have the following information under this
key:
All this information is provided when the EDF is created in the
View Editor.
Extensions can be registered with either a CLSID (Class
Identifier) or a ProgID (Program Identifier). It is recommended
that ProgID be used for extensions created in Visual Basic, and
CLSID be used for all other extensions.
The Extension Definition File entry gives the name of the
KeyName = Descriptive Name of Extension
ExtensionDefinitionFile = name of Extension Definition File
ExtensionType = type, class
CLSID = CLSID of Extension or
ProgID = ProgID of Extension
Only one of the ProgID or CLSID values can be used.
See Chapter 4 -
Extension View Editor
for more information on
creating an EDF.
Komentáře k této Příručce