how to read unicode file
-
Hi all, I have the file strings.mc (from the message compiler). i want to read it using CStdioFile class.... performing :
CStdioFile file(szFile,CFile::modeRead);
char buff[MAX_PATH];
do
{
file.ReadString(buff,MAX_PATH);
} while (buff != NULL);doesn't work so good..... can any1 help? thanks in advanced Yaron Ask not what your application can do for you, Ask what you can do for your application
-
Hi all, I have the file strings.mc (from the message compiler). i want to read it using CStdioFile class.... performing :
CStdioFile file(szFile,CFile::modeRead);
char buff[MAX_PATH];
do
{
file.ReadString(buff,MAX_PATH);
} while (buff != NULL);doesn't work so good..... can any1 help? thanks in advanced Yaron Ask not what your application can do for you, Ask what you can do for your application
Hi, add "_UNICODE" in project/settings/C++/general/Preprocessor definations. CStdioFile file; CString str; while( file.ReadString(str)) { //Do something } if u get any linking error with libraries starting or ending with "u" (e.g. uafxcwd.lib), then u need to install unicode support for VC ide on ur machine. The chosen One :)
-
Hi, add "_UNICODE" in project/settings/C++/general/Preprocessor definations. CStdioFile file; CString str; while( file.ReadString(str)) { //Do something } if u get any linking error with libraries starting or ending with "u" (e.g. uafxcwd.lib), then u need to install unicode support for VC ide on ur machine. The chosen One :)
-
thanks Ask not what your application can do for you, Ask what you can do for your application
You need to take into consideration using TCHAR instead of char cause all the charaters in your program are in two bytes. Sonork 100.41263:Anthony_Yio