]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
ENV: Windows porting
authorenv <env@opencascade.com>
Mon, 29 Aug 2005 05:54:00 +0000 (05:54 +0000)
committerenv <env@opencascade.com>
Mon, 29 Aug 2005 05:54:00 +0000 (05:54 +0000)
src/Container/Container_i.cxx

index 319616a10da37134c852554a125588240faca8f8..3357c8fdc7e6e53c1c75a4ef9dd3aef878b9dd23 100644 (file)
@@ -278,7 +278,11 @@ Engines_Container_i::load_component_Library(const char* componentName)
 
   // --- try dlopen C++ component
 
+#ifndef WNT
   string impl_name = string ("lib") + aCompName + string("Engine.so");
+#else
+  string impl_name = aCompName + string("Engine.dll");
+#endif
   SCRUTE(impl_name);
   
   _numInstanceMutex.lock(); // lock to be alone 
@@ -409,7 +413,11 @@ Engines_Container_i::create_component_instance(const char*genericRegisterName,
   
   //--- try C++
 
+#ifndef WNT
   string impl_name = string ("lib") + genericRegisterName +string("Engine.so");
+#else
+  string impl_name = genericRegisterName +string("Engine.dll");
+#endif
   void* handle = _library_map[impl_name];
   if ( !handle )
     {