X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2Fkernel_ManagerContour_NDimensions%2FParserOsirix%2FOsirixParser.cxx;h=a503b4e1cb2c9bf085228d76a16b4ff97fbbe84e;hb=refs%2Fheads%2Fvtk9itk4wx3-macos;hp=03d34261aed9dd5038963afc0b3d0121f7043c92;hpb=507a00d9d7800568d6e8ae91905f2b07cd2b30ae;p=creaContours.git diff --git a/lib/kernel_ManagerContour_NDimensions/ParserOsirix/OsirixParser.cxx b/lib/kernel_ManagerContour_NDimensions/ParserOsirix/OsirixParser.cxx index 03d3426..a503b4e 100644 --- a/lib/kernel_ManagerContour_NDimensions/ParserOsirix/OsirixParser.cxx +++ b/lib/kernel_ManagerContour_NDimensions/ParserOsirix/OsirixParser.cxx @@ -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("\\"));