Stefan-

Note also that instead of the C calling conventions in section 3.1, a
better (cross-compiler) substitute for WINAPI would be TBP_EXPORT, as
follows:

// if we're in Visual C++
#ifdef _MSC_VER
 #define TBP_EXPORT __stdcall
#endif

// if we're in Borland C++ Builder
 #ifdef __BORLANDC__
  #define TBP_EXPORT __stdcall __declspec(dllexport)
#endif

// if we're in Metrowerks CodeWarrior
#ifdef __MWERKS__
 #define TBP_EXPORT __declspec(dllexport)
#endif

Then declaring the functions as, e.g.

void TBP_EXPORT TBP_Initialize();

will eliminate the need for module-definition (.DEF) files.

-- 
-Mark Wieder

 Using The Bat! v1.63 Beta/7 on Windows 2000 5.0 Build 2195 Service Pack 2


________________________________________________
http://www.silverstones.com/thebat/TBUDLInfo.html

Reply via email to