32#define FX_DEFINE_DYNAMIC_MODULE(_UserModuleClass, _Application) \
33 static OdRxModule* g_pSingletonModule = 0; \
35 __declspec(dllexport) OdRxModule* odrxCreateModuleObject(HMODULE& hModule) \
37 if(!g_pSingletonModule) \
39 CFxString sProgramName = GetFxSystemServices()->GetHostAppServices()->program(); \
40 if( sProgramName.equalNoCase( CFxString::from_ansi_str( _Application ) ) ) \
42 g_pSingletonModule = OdRxWin32Module<_UserModuleClass >::createModule(hModule); \
46 return g_pSingletonModule; \
48 __declspec(dllexport) void odrxGetAPIVersion(int& nMajorVersion, int& nMinorVersion, \
49 int& nMajorBuildVersion, int& nMinorBuildVersion) \
51 nMajorVersion = TD_MAJOR_VERSION; \
52 nMinorVersion = TD_MINOR_VERSION; \
53 nMajorBuildVersion = TD_MAJOR_BUILD; \
54 nMinorBuildVersion = TD_MINOR_BUILD; \