Peter
2007-07-05 16:03:41 UTC
Using BCB5
I try to convert a unicode string to MBCS using the UTF8 page code.
Function: WideCharToMultiByte()
But the funtion fails with 0 and GetLastError() reports error 87
Now I use this code for years now, without problems, using the ANSI
installed (CP_ACP) code page, but I never used CP_UTF8 before
In fact, my BCB5 Help file doesn't mention the code page: CP_UTF8, I got it
from MSDN:
http://msdn2.microsoft.com/en-us/library/ms776420.aspx
Could it be that my BCB5 is not able yet to do this ?
I try to convert a unicode string to MBCS using the UTF8 page code.
Function: WideCharToMultiByte()
But the funtion fails with 0 and GetLastError() reports error 87
Now I use this code for years now, without problems, using the ANSI
installed (CP_ACP) code page, but I never used CP_UTF8 before
In fact, my BCB5 Help file doesn't mention the code page: CP_UTF8, I got it
from MSDN:
http://msdn2.microsoft.com/en-us/library/ms776420.aspx
Could it be that my BCB5 is not able yet to do this ?