The problem is that you are using the wrong string type.
- TCHAR, char. - , Unicode.
Visual Studio, Unicode, MBCS, "Not Set". , Windows API MFC, , . , char, char *, const char*, Windows API, , .
, Unicode MBCS, , , , LPCTSTR - const char *, , , a TCHAR. , , .
, , , , , , , .