xargon
September 14th, 2003, 06:12 PM
Hi,
I tried using the wstring function..However, I am still getting problems. of course, I am probablz using it completely wrong. If someone can help me, I would be extremely grateful.
I did a small tesy and have something like this. BTW: I am not using MFC
wstring test = L"ABS";
MessageBox (0, (const char *) test.c_str(), "", MB_OK);
No matter what I do, it always prints only the first letter in the message box...i.e A. I do not know much about these UNICODE strings. Any guidance on how I can convert them to normal C strings would be really great.
Thanks,
Xargon
I tried using the wstring function..However, I am still getting problems. of course, I am probablz using it completely wrong. If someone can help me, I would be extremely grateful.
I did a small tesy and have something like this. BTW: I am not using MFC
wstring test = L"ABS";
MessageBox (0, (const char *) test.c_str(), "", MB_OK);
No matter what I do, it always prints only the first letter in the message box...i.e A. I do not know much about these UNICODE strings. Any guidance on how I can convert them to normal C strings would be really great.
Thanks,
Xargon