put a #undef _UNICODE before your function and see if you can get it to compile. This should NOT be left in but it will let you know if _UNICODE has been defined in your project.
Actually, thinking about it, most likely you are using "precompiled headers" and the #undef MAY not work.
Go into project settings for all your projects, click on the C++ tab and select "Preprocessor" from the dropdown list. Make sure _UNICODE is not in the list of "Preprocessor Definitions"
I have never used it but "Undefined Symbols" could get _UNICODE added and have the same effect I THINK
You got me on the right lines with the UNICODE- it turns out the function I'm calling takes a WCHAR, not a TCHAR. I'm now going to go slap my colleague who wrote this function
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.