Salome HOME
Porting SALOME COMPONENT module to win32 platform.
[samples/component.git] / src / MulComponent / MulComponent.hxx
index 90341d1d4719bf259c6e94d621bd2001c6fbbb8b..a79a82aebb29f11aa1aa6ad8d1e9a303beded645 100644 (file)
 #ifndef _MULCOMPONENTENGINE_HXX_
 #define _MULCOMPONENTENGINE_HXX_
 
+#ifdef WIN32
+# if defined MULCOMPONENTENGINE_EXPORTS || defined MulComponentEngine_EXPORTS
+#  define MULCOMPONENTENGINE_EXPORT __declspec( dllexport )
+# else
+#  define MULCOMPONENTENGINE_EXPORT __declspec( dllimport )
+# endif
+#else
+# define MULCOMPONENTENGINE_EXPORT
+#endif
+
 //#include <iostream.h>
 #include <SALOMEconfig.h>
 #include CORBA_SERVER_HEADER(MulComponent)
 #include CORBA_SERVER_HEADER(SALOME_Component)
 #include "SALOME_Component_i.hxx"
 
-class MulComponentEngine :  public POA_SuperVisionTest::MulComponent ,
-                            public Engines_Component_i {
+class MULCOMPONENTENGINE_EXPORT MulComponentEngine :  public POA_SuperVisionTest::MulComponent ,
+                                                      public Engines_Component_i {
 public:
   MulComponentEngine() ;
   MulComponentEngine( CORBA::ORB_ptr orb,
@@ -58,6 +68,7 @@ private:
 };
 
 extern "C"
+  MULCOMPONENTENGINE_EXPORT
   PortableServer::ObjectId * MulComponentEngine_factory
                                    ( CORBA::ORB_ptr orb ,
                                      PortableServer::POA_ptr poa ,