Bellow is some simple test program:
int main(int argc, char* argv)
_stprintf(MyString,_T("URL is i %d"),6);
As far as I undertstand, when UNICODE is defined, TCHAR should be translated as UNICODE string, and if not - as ANSI string. However, it seems that this code allways comilled in ANSI, because I when I use wprintf function, even when UNICODE is defined, I allways get "C2664 error" - cannot convert parameter 1 from 'char ' to 'const unsigned short *'. At the same time, "printf' function allways get compilled Ok.
What is going on there ?
What is the right way to make UNICODE string operations ?
Thanks a lot !