Salome HOME
SALOME 9.1.0 Windows version
[modules/smesh.git] / src / SMESHGUI / SMESHGUI_HypothesesUtils.cxx
index f3176684a6b783438aac029f9b101dac07cf57d6..7aff8c6ce1b4b281c333e3d19cadf152d9832d07 100644 (file)
@@ -521,7 +521,17 @@ namespace SMESH
       try {
         // load plugin library
         if(MYDEBUG) MESSAGE("Loading client meshers plugin library ...");
-        LibHandle libHandle = LoadLib( aClientLibName.toUtf8().data() );
+#ifdef WIN32
+#ifdef UNICODE
+               LPTSTR path = new TCHAR[aClientLibName.length() + 1];
+               path[aClientLibName.toWCharArray(path)] = '\0';
+#else
+               const char* path = aClientLibName.toUtf8().data();
+#endif
+#else
+               char* path = aClientLibName.toUtf8().data();
+#endif
+        LibHandle libHandle = LoadLib( path );
         if (!libHandle) {
           // report any error, if occurred
           {