
3-22 Registering Extensions
3-22
Extension Definition File for the object.
The type of the extension is given by the ExtensionType entry.
The type can be UnitOperation, PropertyPackage or
KineticReaction. The class descriptor is optional, and currently is
ignored if present.
3.6.1 Registering Extensions
Written in C
++
When you create an extension in C++, you must implement a
DllRegisterServer function in the DLL containing the extension.
This function is called from HYSYS when registering the
extension. The file extsdk.cpp that is included with the
Extension Development Kit provides code that implements this
function.
To register an extension written in C++, simply use the
following procedure:
1. Start HYSYS. From the Tools menu, select Preferences
command. The Session Preferences property view opens.
2. Go to the Extensions tab and click the Register an
Extension button. This opens the Select an Extension to
be Registered property view.
Ensure that the EDF and extension DLL are in the same
directory.
Komentáře k této Příručce