It sounds like you are trying to interpret UTF-16 characters as ASCII. Are you compiling your code as Unicode?
If you need your parameters as ASCII, either compile your code as ASCII, or keep _TCHAR*
and use WideCharToMultiByte()
to convert the arguments.