home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / smarts / dts / sominit.cpp < prev   
Encoding:
Text File  |  1996-02-21  |  1.3 KB  |  42 lines

  1. --------------------------------------------------------------------------------
  2. --
  3. -- COPYRIGHT:
  4. --   IBM WorkFrame - Project Smarts
  5. --   (C) Copyright International Business Machines Corporation 1996
  6. --   Licensed Material - Program-Property of IBM - All Rights Reserved.
  7. --   US Government Users Restricted Rights - Use, duplication, or disclosure
  8. --   restricted by GSA ADP Schedule Contract with IBM Corp.
  9. --
  10. --------------------------------------------------------------------------------
  11. <include prologcp.tde>
  12.  
  13. <repeat CLASS_NAME>
  14. #define EXorImp_$CLASS_NAME$ _Export
  15. </repeat>
  16.  
  17. <repeat HEADER_NAME>
  18. #include "$HEADER_NAME$.hh"
  19. </repeat>
  20.  
  21.  
  22. //
  23. // An initialization function for the class library must be provided to
  24. // support dynamic loading of the library by the SOM Class Manager.
  25. // The name of this function is SOMInitModule.
  26. //
  27. void __stdcall _Export SOMInitModule(long majorVersion,
  28.                                      long minorVersion,
  29.                                      string className)
  30. {
  31. //
  32. // Set the major and minor version for each class.
  33. // NOTE: use the SOM class name set via #pragma SOMClassName, NOT the
  34. //       C++ class name.
  35. //
  36. <repeat SOM_CLASS_NAME>
  37.     $SOM_CLASS_NAME$NewClass($SOM_CLASS_NAME$_MajorVersion, $SOM_CLASS_NAME$_MinorVersion);
  38. </repeat>
  39.  
  40. }
  41.  
  42.