#ifdef WIN32
char currentPath[_MAX_PATH];
- GetModuleFileName(NULL, currentPath, _MAX_PATH);
+
+ wchar_t currentPath2[512];
+ long result = GetModuleFileName(NULL, currentPath2, pathsize);
+// GetModuleFileName(NULL, currentPath, _MAX_PATH);
+ int ret = wcstombs ( currentPath, currentPath2, sizeof(pname) );
+
TEMPIMPORTOSIRIXFILE = currentPath;
TEMPIMPORTOSIRIXFILE = TEMPIMPORTOSIRIXFILE.substr(0,TEMPIMPORTOSIRIXFILE.find_last_of("\\"));