From 4a6a79a17f98eb8d02b3995c4a6aa1ab0b2bffc3 Mon Sep 17 00:00:00 2001 From: ouv Date: Fri, 27 Oct 2006 12:22:46 +0000 Subject: [PATCH] loading libVISUEngineImpl.so on Linux and VISUEngineImpl.dll on Win32 --- src/ENGINE/VISU_Engine_i.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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); } -- 2.39.2