]> Creatis software - creaContours.git/blobdiff - lib/kernel_ManagerContour_NDimensions/ParserOsirix/OsirixParser.cxx
#3216 creaContours Feature New Normal - vtk8itk4wx3-mingw64
[creaContours.git] / lib / kernel_ManagerContour_NDimensions / ParserOsirix / OsirixParser.cxx
index 03d34261aed9dd5038963afc0b3d0121f7043c92..a503b4e1cb2c9bf085228d76a16b4ff97fbbe84e 100644 (file)
@@ -95,7 +95,12 @@ OsirixParser::OsirixParser(std::string xsdfile, double* spacing, int* extent)
 #ifdef WIN32
 
        char currentPath[_MAX_PATH];    
-       GetModuleFileName(NULL, currentPath, _MAX_PATH);
+       
+    wchar_t currentPath2[512];
+    long result = GetModuleFileName(NULL, currentPath2, _MAX_PATH);
+//     GetModuleFileName(NULL, currentPath, _MAX_PATH);
+       int ret = wcstombs ( currentPath, currentPath2, sizeof(pname) );        
+       
        TEMPIMPORTOSIRIXFILE = currentPath;
 
        TEMPIMPORTOSIRIXFILE = TEMPIMPORTOSIRIXFILE.substr(0,TEMPIMPORTOSIRIXFILE.find_last_of("\\"));