home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / samples / compiler / dts / xhmain / dtsdll / mycls.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-20  |  726 b   |  35 lines

  1. //
  2. // As class providers, we want to export out class.
  3. //
  4. #define EXorIMP_Info _Export
  5. #include "info.hh"
  6.  
  7. //
  8. // Pragma SOMDefine generates the SOMBuildClass data structures
  9. // required by the SOM runtime.
  10. //
  11.  
  12. #pragma SOMDefine(Info)
  13.  
  14. Info::Info() : x(5), y('A')
  15. {
  16. }
  17.  
  18. //
  19. // An initialization function for the class library must be provided to
  20. // support dynamic loading of the library by the SOM Class Manager.
  21. // The name of this function is SOMInitModule.
  22. //
  23.  
  24. void __stdcall _Export SOMInitModule(long majorVersion,
  25.                      long minorVersion,
  26.                      string className)
  27. {
  28.  
  29. //
  30. // Set the major and minor version for class Info.
  31. //
  32.     infoNewClass(info_MajorVersion, info_MinorVersion);
  33. }
  34.  
  35.