]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
loading libVISUEngineImpl.so on Linux and VISUEngineImpl.dll on Win32
authorouv <ouv@opencascade.com>
Fri, 27 Oct 2006 12:22:46 +0000 (12:22 +0000)
committerouv <ouv@opencascade.com>
Fri, 27 Oct 2006 12:22:46 +0000 (12:22 +0000)
src/ENGINE/VISU_Engine_i.cc

index 5eee3627acb5c090e8f3c2a67350c436338fa307..0d81ef4c548f075bd1a0b9e85958cf3b7e468d51 100644 (file)
@@ -73,8 +73,11 @@ namespace VISU{
     CORBA::Object_ptr anObject = aNamingService.Resolve("/Kernel/Session");
     SALOME::Session_var aSession = SALOME::Session::_narrow(anObject);
     //aSession->GetInterface(); 
-    //Engines::Component_var aComponent = aSession->GetComponent("libVISUEngineImpl.so");
-       Engines::Component_var aComponent = aSession->GetComponent("VISUEngineImpl.dll");
+#ifndef WIN32
+    Engines::Component_var aComponent = aSession->GetComponent("libVISUEngineImpl.so");
+#else
+    Engines::Component_var aComponent = aSession->GetComponent("VISUEngineImpl.dll");
+#endif
     myVisuGen = VISU::VISU_Gen::_narrow(aComponent);
   }