home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 1997 October
/
Chip_1997-10_cd.bin
/
tema
/
sybase
/
powerj
/
hpp.z
/
MTDEF.HPP
< prev
next >
Wrap
C/C++ Source or Header
|
1996-12-23
|
1KB
|
62 lines
#ifndef _MTDEF_HPP
#define _MTDEF_HPP
//
// Define the calling convention. We use __stdcall for portability.
//
#define METADEF WCMDEF
//
// Define macros for importing & exporting things.
//
#define METADECLSPEC_IMPORT //__declspec(dllimport)
#define METADECLSPEC_EXPORT __declspec(dllexport)
#define OCXDECLSPEC_IMPORT //__declspec(dllimport)
#define OCXDECLSPEC_EXPORT __declspec(dllexport)
//
// Compile-time switches control how we define our classes.
//
//
// Normal, un-exported classes (temporarily, all classes
// are exported).
//
#if defined( __BUILDING_DTWCM_DLL__ ) || defined( __BUILDING_DTJVA_DLL__ )
//#define METACLASSDEF METADEF
#define METACLASSDEF METADECLSPEC_EXPORT METADEF
#else
//#define METACLASSDEF METADEF
#define METACLASSDEF METADECLSPEC_IMPORT METADEF
#endif
//
// Explicitly exported classes
//
#if defined( __BUILDING_DTWCM_DLL__ ) || defined( __BUILDING_DTJVA_DLL__ ) || defined( __BUILDING_DTJCL_DLL )
#define METAEXPORTCLASSDEF METADECLSPEC_EXPORT METADEF
#else
#define METAEXPORTCLASSDEF METADECLSPEC_IMPORT METADEF
#endif
//
// Explicitly exported functions
//
#if defined( __BUILDING_DTWCM_DLL__ ) || defined( __BUILDING_DTJVA_DLL__ )
#define METAEXPORTDEF __export METADEF
#else
#define METAEXPORTDEF METADEF
#endif
#ifdef __BUILDING_OCX_DLL__
#define OCXCLASSDEF OCXDECLSPEC_EXPORT METADEF
#else
#define OCXCLASSDEF OCXDECLSPEC_IMPORT METADEF
#endif
#endif // _MTDEF_HPP