/Joakim Andersson
Sweden
Not suree of what you want to do, but I would try the following:
CString csMsg("This is a test");
WCHAR* wcString;
wcString = new WCHAR[csMsg.GetLength()];
MultiByteToWideChar(CP_ACP, 0, csMsg.GetBuffer(0), -1, wcString,
csMsg.GetLength());
// at this point wcString should contain the contents of "This is a test" in
unicode format.
To convert the other way use the WideCharToMultiByte function.
George
Joakim Andersson <joakim.a...@wirelesscar.com> wrote in message
news:e1KdUpty$GA....@cppssbbsa02.microsoft.com...