01-23-2008 11:09 AM
01-24-2008 09:03 AM
01-24-2008 12:19 PM - edited 01-24-2008 12:28 PM
01-24-2008 12:19 PM - edited 01-24-2008 12:27 PM
01-24-2008 12:19 PM - edited 01-24-2008 12:27 PM
01-24-2008 12:19 PM - edited 01-24-2008 12:25 PM
01-24-2008 12:19 PM - edited 01-24-2008 12:25 PM
01-24-2008 12:19 PM - edited 01-24-2008 12:24 PM
01-24-2008 12:19 PM - edited 01-24-2008 12:23 PM
01-25-2008 01:48 AM
WCHAR* wszCommandT;
int nLenT;
// determine the buffer size
nLenT = MultiByteToWideChar(CP_ACP, 0, sgCommand, -1, NULL, NULL);
// allocate result buffer
wszCommandT = new WCHAR[nLenT];
// Convert the string from ANSI to Unicode
nLenT = MultiByteToWideChar(CP_ACP, 0, sgCommand,-1,wszCommandT,nLenT);
if( nLenT > 0)
{
// do something ...
}
// free result buffer
delete wszCommandT;
| Matthias Alleweldt Project Engineer / Projektingenieur | Twigeater? |