
Extensibility 3-13
3-13
3.5.2 In C
++
The following six steps provide a framework for creating an
extension in C++:
1. Create the Extension Definition.
2. Implement the Required Interfaces.
3. Implement the ClassFactory.
4. Create and Register the DLL.
5. Debug the Extension.
6. Distribute the Extension.
These steps are explained in more detail in the following
sections.
Create the Extension Definition
The EDF contains important information about an extension that
is required by the extension's container in HYSYS. Specifically, it
contains information about the variables that the extension own
(that are managed by the container), and it may also contain
one or more property views for the object.
For each extension, you must provide either a CLSID or a
ProgID. Other information that can be provided at this point
includes: the extension description, from which you identify the
extension within HYSYS, the extension type and the number of
property views. The selection of the ProgID is explained in the
following sub-section entitled: Register the Extension.
The extension definition file, which contains the definition of
the extension is created using the View Editor.
It is possible to create an EDF with 0 views.
Komentáře k této Příručce