Suraj
01-10-2005, 08:59 AM
Hi,
I would need to port the WinAPI functions MultiByteToWideChar and WideCharToMultiByte to Unix.
Specifically, the call is :
MultiByteToWideChar(CP_ACP, 0, AnsiStr, -1, UnicodeStr, sizeof(UnicodeStr));
I know that mbcstowcs() call should help me in the porting but I do not know how to handle the first parameter CP_ACP in Unix ie. setting the code page to Ansi .
Should it be done by calling setlocale(LC_CTYPE,"") or is there any other method ?
Any help will be highly appreciated
Thanks,
I would need to port the WinAPI functions MultiByteToWideChar and WideCharToMultiByte to Unix.
Specifically, the call is :
MultiByteToWideChar(CP_ACP, 0, AnsiStr, -1, UnicodeStr, sizeof(UnicodeStr));
I know that mbcstowcs() call should help me in the porting but I do not know how to handle the first parameter CP_ACP in Unix ie. setting the code page to Ansi .
Should it be done by calling setlocale(LC_CTYPE,"") or is there any other method ?
Any help will be highly appreciated
Thanks,