#ifndef _DYNINVOKE_
#define _DYNINVOKE_
+#ifdef WIN32
+# if defined DYNINVOKE_EXPORTS || defined DynInvoke_EXPORTS
+# define DYNINVOKE_EXPORT __declspec( dllexport )
+# else
+# define DYNINVOKE_EXPORT __declspec( dllimport )
+# endif
+#else
+# define DYNINVOKE_EXPORT
+#endif
+
struct ServicesAnyData {
std::string Name;
// dynamic call for function with list of in parameters, followed
// by out parameters with no return value
-void DynInvoke(Engines::EngineComponent_ptr obj,
- const char *method,
- ServicesAnyData * inParams, int nInParams,
- ServicesAnyData * outParams, int nOutParams);
+void DYNINVOKE_EXPORT DynInvoke(Engines::EngineComponent_ptr obj,
+ const char *method,
+ ServicesAnyData * inParams, int nInParams,
+ ServicesAnyData * outParams, int nOutParams);
#endif