You could dynamically allocate a TCHAR array and then deallocate it after use.
TCHAR* psz = new TCHAR[nBufferLen + 1];
.
.
.
delete [] psz;
char and string don't work with unicode data.
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 8 of 8
Threaded View
|
Click Here to Expand Forum to Full Width |