Click here to Skip to main content
15,889,034 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionUNICODE setting for win32 Pin
includeh1015-Oct-09 17:54
includeh1015-Oct-09 17:54 
AnswerRe: UNICODE setting for win32 Pin
Hans Dietrich15-Oct-09 19:04
mentorHans Dietrich15-Oct-09 19:04 
GeneralRe: UNICODE setting for win32 Pin
includeh1015-Oct-09 23:54
includeh1015-Oct-09 23:54 
QuestionMinimum size alignment of exe or dll file. Pin
includeh1015-Oct-09 17:39
includeh1015-Oct-09 17:39 
AnswerRe: Minimum size alignment of exe or dll file. Pin
Joe Woodbury15-Oct-09 17:54
professionalJoe Woodbury15-Oct-09 17:54 
GeneralRe: Minimum size alignment of exe or dll file. Pin
includeh1015-Oct-09 18:04
includeh1015-Oct-09 18:04 
GeneralRe: Minimum size alignment of exe or dll file. Pin
Joe Woodbury15-Oct-09 18:13
professionalJoe Woodbury15-Oct-09 18:13 
QuestionHow to make UTF-8 converted to Unicode? Pin
wangningyu15-Oct-09 15:18
wangningyu15-Oct-09 15:18 
Dear .

Here I have a HTML web page file,such as "MyWeb.html".

Now I read it into CString object,and use to Find some chinese characters.For example:

CString    str="";
CStdioFile file;
CString    strLine="";
if(!file.Open("MyWeb.html",CFile::modeRead | CFile::typeText,NULL))
{
CString strTemp;
strTemp.Format("Open file error:%d",GetLastError());
MessageBox(strTemp);
    return;
}

while(file.ReadString(strLine)){
    str = str + strLine;
}

MessageBox(str);
if(str.Find("some chinese characters.")>=1){
    MessageBox("the characters is in the file.");
}
file.Close();


My operate system is Chinese Simplified,but this web page is utf-8.when use MessageBox to display all Cstring characters,the english characters display correctly ,but the chinese isn't,is all garbled.

Now what can I do ?

thanks !

Best Reguards !
AnswerRe: How to make UTF-8 converted to Unicode? Pin
includeh1015-Oct-09 17:34
includeh1015-Oct-09 17:34 
AnswerRe: How to make UTF-8 converted to Unicode? Pin
Michael Schubert15-Oct-09 21:31
Michael Schubert15-Oct-09 21:31 
QuestionPlease lent me some idea.. [modified] Pin
mr bard215-Oct-09 14:59
mr bard215-Oct-09 14:59 
AnswerRe: Please lent me some idea.. Pin
Richard MacCutchan15-Oct-09 22:14
mveRichard MacCutchan15-Oct-09 22:14 
QuestionGettextextent and Screen resolution Pin
ForNow15-Oct-09 12:32
ForNow15-Oct-09 12:32 
AnswerRe: Gettextextent and Screen resolution Pin
«_Superman_»15-Oct-09 12:57
professional«_Superman_»15-Oct-09 12:57 
GeneralRe: Gettextextent and Screen resolution Pin
ForNow15-Oct-09 13:32
ForNow15-Oct-09 13:32 
GeneralRe: Gettextextent and Screen resolution Pin
«_Superman_»15-Oct-09 13:37
professional«_Superman_»15-Oct-09 13:37 
GeneralRe: Gettextextent and Screen resolution Pin
ForNow15-Oct-09 13:43
ForNow15-Oct-09 13:43 
GeneralOT Pin
Rajesh R Subramanian15-Oct-09 19:02
professionalRajesh R Subramanian15-Oct-09 19:02 
GeneralRe: OT Pin
«_Superman_»15-Oct-09 19:06
professional«_Superman_»15-Oct-09 19:06 
GeneralRe: OT Pin
Rajesh R Subramanian15-Oct-09 19:10
professionalRajesh R Subramanian15-Oct-09 19:10 
GeneralRe: OT Pin
«_Superman_»15-Oct-09 19:13
professional«_Superman_»15-Oct-09 19:13 
Question8 puzzle problem Pin
Adam2009215-Oct-09 10:40
Adam2009215-Oct-09 10:40 
AnswerRe: 8 puzzle problem Pin
Reagan Conservative15-Oct-09 10:45
Reagan Conservative15-Oct-09 10:45 
AnswerRe: 8 puzzle problem Pin
CPallini15-Oct-09 20:59
mveCPallini15-Oct-09 20:59 
AnswerRe: 8 puzzle problem Pin
Michael Schubert15-Oct-09 22:18
Michael Schubert15-Oct-09 22:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.