Click here to Skip to main content
15,902,635 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Calculate factorial of any number less than 10000,but I don't know how to start with? Pin
CPallini15-Oct-09 22:52
mveCPallini15-Oct-09 22:52 
AnswerRe: Calculate factorial of any number less than 10000,but I don't know how to start with? [modified] Pin
CPallini15-Oct-09 23:05
mveCPallini15-Oct-09 23:05 
AnswerRe: Calculate factorial of any number less than 10000,but I don't know how to start with? Pin
David Crow16-Oct-09 3:05
David Crow16-Oct-09 3:05 
AnswerRe: Calculate factorial of any number less than 10000,but I don't know how to start with? Pin
Maximilien16-Oct-09 3:06
Maximilien16-Oct-09 3:06 
GeneralRe: Calculate factorial of any number less than 10000,but I don't know how to start with? Pin
Rajesh R Subramanian16-Oct-09 3:58
professionalRajesh R Subramanian16-Oct-09 3:58 
GeneralRe: Calculate factorial of any number less than 10000,but I don't know how to start with? Pin
Maximilien16-Oct-09 4:02
Maximilien16-Oct-09 4:02 
GeneralRe: Calculate factorial of any number less than 10000,but I don't know how to start with? Pin
David Crow16-Oct-09 4:22
David Crow16-Oct-09 4:22 
QuestionOutlook contacts Pin
Anil Kumar.Arvapalli15-Oct-09 19:59
Anil Kumar.Arvapalli15-Oct-09 19:59 
AnswerRe: Outlook contacts Pin
CPallini15-Oct-09 20:58
mveCPallini15-Oct-09 20:58 
AnswerRe: Outlook contacts Pin
Richard MacCutchan15-Oct-09 22:08
mveRichard MacCutchan15-Oct-09 22:08 
Questionunicode exe with ansi dll Pin
includeh1015-Oct-09 18:01
includeh1015-Oct-09 18:01 
AnswerRe: unicode exe with ansi dll Pin
Hans Dietrich15-Oct-09 19:14
mentorHans Dietrich15-Oct-09 19:14 
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 

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.