I must be missing something... A #define or a header... something...
In windows all functions respond to the UNICODE define, giving you the wide string version of the call... but they didn't think to do this in VC++?
I don't want to even think what my code would look like if I had to do this...
So, what am I missing????Code:// Unicodetest.cpp #ifdef _MBCS #undef _MBCS #endif #define _UNICODE #define UNICODE #include <iostream> #include <string> #include <tchar.h> using namespace std; int main(void) { #ifdef _UNICODE wstring Greet; #else string Greet; #endif Greet = _T("Hello World!!"); #ifdef _UNICODE wcout << Greet << endl; #else cout << Greet << endl; #endif return 0; }



LinkBack URL
About LinkBacks



