]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/include/wxMaracasApp02.cxx
#3207 creaMaracasVisu Feature New Normal branch vtk7itk4wx3-mingw
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / include / wxMaracasApp02.cxx
index 50bea15fde84b4aa28aef13a382bd61c846bc177..ecd2b970cd9fb07227fd36675a537b3a02bb24d4 100644 (file)
@@ -93,7 +93,12 @@ wxString getExecutablePath()
     char* slash;
 
 #if defined(WIN32)
-    GetModuleFileName(NULL, buf, 511);
+
+    wchar_t buf2[512];
+    long result = GetModuleFileName(NULL, buf2, pathsize);
+       int ret = wcstombs ( buf, buf2, sizeof(pname) );        
+//    GetModuleFileName(NULL, buf, 511);
+
     slash = strrchr(buf, '\\');
     if (slash)
     {