home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / com / oleaut / spoly2 / clsid.c < prev    next >
C/C++ Source or Header  |  1997-10-05  |  1KB  |  52 lines

  1. /*** 
  2. *clsid.c
  3. *
  4. *  This is a part of the Microsoft Source Code Samples.
  5. *
  6. *  Copyright (C) 1992-1997 Microsoft Corporation. All rights reserved.
  7. *
  8. *  This source code is only intended as a supplement to Microsoft Development
  9. *  Tools and/or WinHelp documentation.  See these sources for detailed
  10. *  information regarding the Microsoft samples programs.
  11. *
  12. *Purpose:
  13. *  This file allocates and initializes the CLSIDs.
  14. *
  15. *****************************************************************************/
  16.  
  17. #ifdef _PPCMAC
  18. #pragma data_seg ("_FAR_DATA")
  19. #pragma data_seg ( )
  20. #endif //_PPCMAC
  21.  
  22. #ifdef _MAC
  23. # include <Types.h>
  24. #ifdef _MSC_VER
  25. # include <Processe.h>
  26. # include <AppleEve.h>
  27. #else //_MSC_VER
  28. # include <Processes.h>
  29. # include <AppleEvents.h>
  30. #endif //_MSC_VER
  31. #else
  32. # include <windows.h>
  33. #endif
  34.  
  35. #ifndef WIN32
  36. #include <compobj.h>
  37. #endif //!WIN32
  38.  
  39. // this redefines the DEFINE_GUID() macro to do allocation.
  40. //
  41. #include <initguid.h>
  42.  
  43. #ifndef INITGUID
  44. # define INITGUID
  45. #endif
  46.  
  47. // due to the previous header, including this causes the DEFINE_GUID
  48. // definitions in the following header(s) to actually allocate data.
  49. //
  50. #include "clsid.h"
  51.  
  52.