//2018-07-06 mingw64
wchar_t pname2[512];
- mbstowcs(pname2,pname,strlen(pname)+1);
long result = GetModuleFileName(NULL, pname2, pathsize);
+ int ret = wcstombs ( pname, pname2, sizeof(pname) );
// long result = GetModuleFileName(NULL, pname, pathsize);
if (result > 0)
//2018-07-06 mingw64
wchar_t currentPath2[512];
- mbstowcs(currentPath2,currentPath,strlen(currentPath)+1);
GetModuleFileName(hand, currentPath2, _MAX_PATH);
+ int ret = wcstombs ( currentPath, currentPath2, sizeof(pname) );
// GetModuleFileName(hand, currentPath, _MAX_PATH);
path = currentPath;
//2018-07-06 mingw64
wchar_t currentPath2[512];
- mbstowcs(currentPath2,currentPath,strlen(currentPath)+1);
GetModuleFileName(hand, currentPath2, _MAX_PATH);
+ int ret = wcstombs ( currentPath, currentPath2, sizeof(pname) );
// GetModuleFileName(hand, currentPath, _MAX_PATH);
path = currentPath;