1 #ifndef _DLL_SERVICE_H_
2 #define _DLL_SERVICE_H_
4 #include "DLL_Service_export.h"
6 class ACE_DLL_SERVICE_Export ACE_DLL_Service
9 ACE_DLL_Service (void);
11 virtual ~ACE_DLL_Service (void);
13 virtual int init (int , ACE_TCHAR
* []);
15 virtual int fini (void);
17 /// This is only here for destruction purposes
18 virtual void destroy (void);
21 #define ACE_DLL_SERVICE_DECL(export_macro, symbol) \
22 extern "C" export_macro ACE_DLL_Service * symbol (void)
24 #define ACE_DLL_SERVICE_IMPL(classname, symbol) \
25 ACE_DLL_Service * symbol (void) \
27 classname * service = 0; \
28 ACE_NEW_RETURN (service, classname (), 0); \