home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c083 / 11.ddi / OWLSRC.PAK / GLOBAL.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1993-12-02  |  1.1 KB  |  39 lines

  1. //----------------------------------------------------------------------------
  2. // ObjectWindows - (C) Copyright 1991, 1993 by Borland International
  3. //   source\owl\global.cpp
  4. //   Global data required for every module using OWL
  5. //----------------------------------------------------------------------------
  6. #include <owl\owlpch.h>
  7. #include <owl\applicat.h>
  8.  
  9. class _OWLCLASS TDocTemplate;
  10.  
  11. // Global module pointer representing this executable instance
  12. //   provides the default instance for resources contructed within this module
  13.  
  14. TModule* Module = 0;  // must be set to a TApplication* or a TModule*
  15.  
  16. // Document templates contructed before doc manager get linked in here
  17.  
  18. TDocTemplate* DocTemplateStaticHead = 0;  // initialize to no templates
  19.  
  20. #if defined(__DLL__)
  21.  
  22. // Exported access to global variables
  23.  
  24. extern "C" {
  25.  
  26. TDocTemplate** _export PASCAL GetDocTemplateHead(int version)
  27. {
  28.   return version == 0x200 ? &DocTemplateStaticHead : 0;
  29. }
  30.  
  31. TModule** _export PASCAL GetModulePtr(int version)
  32. {
  33.   return version == 0x200 ? &Module : 0;
  34. }
  35.  
  36. }
  37.  
  38. #endif
  39.