Aspen Touch Solutions ATM-123R Series Specifikace Strana 99

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 374
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 98
Extensibility 3-15
3-15
Definitions of the interfaces that you must implement (as well as
any interfaces provided by HYSYS objects) are provided in the
hysys.hh file, that is included in the Extension Development Kit.
You must include this file in any source files that access the
defined interfaces.
Implement the Class Factory
When HYSYS creates an instance of your extension object, it
accesses the COM Library which calls the function
DllGetClassObject which is contained in the DLL. DllGetObject
creates the requested class factory. You can implement a
ClassFactory yourself, or you can use the one provided in
extsdk.cpp (which is included in the Extension Development
Kit).
If you choose to use the ClassFactory provided by extsdk.cpp,
you must implement the REGISTER_EXTENSION macro
somewhere in your code. This macro provides information to the
ClassFactory on how to create an instance of your extension.
The syntax of this macro is:
REGISTER_EXTENSION(ClassName, clsid, VisibleDescription)
where:
ClassName = the C++ name of the class
clsid = the CLSID of the class
VisibleDescription = a string containing a description of the
class that a user can understand
You must implement this macro once for every extension in your
DLL.
Zobrazit stránku 98
1 2 ... 94 95 96 97 98 99 100 101 102 103 104 ... 373 374

Komentáře k této Příručce

Žádné komentáře