home *** CD-ROM | disk | FTP | other *** search
- //
- // As class providers, we want to export out class.
- //
- #define EXorIMP_Info _Export
- #include "info.hh"
-
- //
- // Pragma SOMDefine generates the SOMBuildClass data structures
- // required by the SOM runtime.
- //
-
- #pragma SOMDefine(Info)
-
- Info::Info() : x(5), y('A')
- {
- }
-
- //
- // An initialization function for the class library must be provided to
- // support dynamic loading of the library by the SOM Class Manager.
- // The name of this function is SOMInitModule.
- //
-
- void __stdcall _Export SOMInitModule(long majorVersion,
- long minorVersion,
- string className)
- {
-
- //
- // Set the major and minor version for class Info.
- //
- infoNewClass(info_MajorVersion, info_MinorVersion);
- }
-
-