From: ouv Date: Fri, 27 Oct 2006 12:22:46 +0000 (+0000) Subject: loading libVISUEngineImpl.so on Linux and VISUEngineImpl.dll on Win32 X-Git-Tag: Before_merging_with_V3_2_4~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4a6a79a17f98eb8d02b3995c4a6aa1ab0b2bffc3;p=modules%2Fvisu.git loading libVISUEngineImpl.so on Linux and VISUEngineImpl.dll on Win32 --- diff --git a/src/ENGINE/VISU_Engine_i.cc b/src/ENGINE/VISU_Engine_i.cc index 5eee3627..0d81ef4c 100644 --- a/src/ENGINE/VISU_Engine_i.cc +++ b/src/ENGINE/VISU_Engine_i.cc @@ -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); }