hyp_EXPORT_DLL hyp_ker::com_result hyp_CALL_CONV hypDllCanUnloadNow(void) { \
return hyp_ker::CFactory::CanUnloadNow(); \
} \
hyp_EXPORT_DLL hyp_ker::com_result hyp_CALL_CONV hypDllGetClassObject(const hyp_ker::hypCLSID& clsid,const hyp_ker::hypIID& iid,void** ppv) { \
hypstd_TRACE( ("Appel de DllGetClassObject") ); \
return hyp_ker::CFactory::GetClassObject(clsid, iid, ppv); \
} \
hyp_EXPORT_DLL hyp_ker::com_result hyp_CALL_CONV hypDllRegisterServer(void) { \
return hyp_ker::CFactory::RegisterAll(); \
} \
hyp_EXPORT_DLL hyp_ker::com_result hyp_CALL_CONV hypDllUnregisterServer(void) { \
return hyp_ker::CFactory::UnregisterAll(); \
}
Include this macro in a implementation files to define automatically the exported functions. Don't miss to define a .def file to export these functions.