Changing of CString to const char*
SPONSORED LINKS
I tried the following code. However, the compiler keep on throwing exceptions that the parameters are not compatible. Can anyone please tell me how to convert CString path. So i can call the system() function.
CString pathname;
pathname.Format(L”BatchFiles\RE2P2_ReadInfoSectors.bat %c”,&drive);
const char* path;
wcscpy(path,pathname);
system(path);
Read the rest here:
Changing of CString to const char*