home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2002 March / PCWMAR02.iso / software / turbocad / v8trial / TurboCADv8ProfessionalNoReg.exe / Data.Cab / F39340_ViewPict.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-10-16  |  1.4 KB  |  31 lines

  1. /******************************************************************/
  2. /*                                                                */
  3. /*                      TurboCAD for Windows                      */
  4. /*                   Copyright (c) 1993 - 2001                    */
  5. /*             International Microcomputer Software, Inc.         */
  6. /*                            (IMSI)                              */
  7. /*                      All rights reserved.                      */
  8. /*                                                                */
  9. /******************************************************************/
  10.  
  11. // The following ifdef block is the standard way of creating macros which make exporting 
  12. // from a DLL simpler. All files within this DLL are compiled with the VIEWPICT_EXPORTS
  13. // symbol defined on the command line. this symbol should not be defined on any project
  14. // that uses this DLL. This way any other project whose source files include this file see 
  15. // VIEWPICT_API functions as being imported from a DLL, wheras this DLL sees symbols
  16. // defined with this macro as being exported.
  17. #ifdef VIEWPICT_EXPORTS
  18. //#define VIEWPICT_API __declspec(dllexport)
  19. #define VIEWPICT_API
  20. #else
  21. #define VIEWPICT_API __declspec(dllimport)
  22. #endif
  23.  
  24. #include <olectl.h>
  25.  
  26. extern "C" {
  27. VIEWPICT_API IDispatch* __stdcall BitmapToPicture(HGLOBAL hDIB);
  28. VIEWPICT_API IDispatch* __stdcall MetafileToPicture(HMETAFILE hMF, long width, long height);
  29. }
  30.  
  31.