Click here to Skip to main content
15,792,539 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to catch exception before a crash happens? Pin
Naveen21-Oct-09 21:59
Naveen21-Oct-09 21:59 
QuestionRe: How to catch exception before a crash happens? Pin
jtasph21-Oct-09 22:26
jtasph21-Oct-09 22:26 
AnswerRe: How to catch exception before a crash happens? Pin
Naveen21-Oct-09 22:53
Naveen21-Oct-09 22:53 
AnswerRe: How to catch exception before a crash happens? Pin
Randor 21-Oct-09 23:10
professional Randor 21-Oct-09 23:10 
GeneralRe: How to catch exception before a crash happens? Pin
jtasph21-Oct-09 23:18
jtasph21-Oct-09 23:18 
QuestionRe: How to catch exception before a crash happens? [modified] Pin
jtasph22-Oct-09 0:16
jtasph22-Oct-09 0:16 
QuestionNeed help for CStdioFile Read mode Pin
Nicholas Amh21-Oct-09 20:23
Nicholas Amh21-Oct-09 20:23 
AnswerRe: Need help for CStdioFile Read mode Pin
Adam Roderick J21-Oct-09 20:38
Adam Roderick J21-Oct-09 20:38 
If you use Read function, then its better to use CFile.
Use ReadString to get hte benefit of CStdioFile.
Smile | :)
CStdioFile FileData;
    CString chLine;
    if( !FileData.Open( csFilePath_i, CFile::modeRead  ))
    {
         return;
    }
    FileData.SeekToBegin();
    //Get each lines from the file
    while (FileData.ReadString(chLine))
    {
        _stscanf(chLine, "%lf %lf %lf\n", &a, &b, &c);
    }


Величие не Бога может быть недооценена.

GeneralRe: Need help for CStdioFile Read mode Pin
Nicholas Amh21-Oct-09 20:47
Nicholas Amh21-Oct-09 20:47 
GeneralRe: Need help for CStdioFile Read mode [modified] Pin
Adam Roderick J21-Oct-09 20:54
Adam Roderick J21-Oct-09 20:54 
AnswerRe: Need help for CStdioFile Read mode Pin
Naveen21-Oct-09 20:38
Naveen21-Oct-09 20:38 
GeneralRe: Need help for CStdioFile Read mode Pin
Nicholas Amh21-Oct-09 21:11
Nicholas Amh21-Oct-09 21:11 
GeneralRe: Need help for CStdioFile Read mode Pin
Naveen21-Oct-09 21:24
Naveen21-Oct-09 21:24 
GeneralRe: Need help for CStdioFile Read mode Pin
Nicholas Amh21-Oct-09 22:48
Nicholas Amh21-Oct-09 22:48 
GeneralRe: Need help for CStdioFile Read mode Pin
Richard MacCutchan22-Oct-09 0:18
mveRichard MacCutchan22-Oct-09 0:18 
AnswerRe: Need help for CStdioFile Read mode Pin
theCPkid21-Oct-09 20:42
theCPkid21-Oct-09 20:42 
GeneralRe: Need help for CStdioFile Read mode Pin
Nicholas Amh21-Oct-09 21:24
Nicholas Amh21-Oct-09 21:24 
GeneralRe: Need help for CStdioFile Read mode Pin
theCPkid22-Oct-09 1:22
theCPkid22-Oct-09 1:22 
QuestionRe: Need help for CStdioFile Read mode Pin
David Crow22-Oct-09 4:25
David Crow22-Oct-09 4:25 
QuestionRead from text file Pin
sonualex21-Oct-09 20:05
sonualex21-Oct-09 20:05 
AnswerRe: Read from text file Pin
theCPkid21-Oct-09 20:26
theCPkid21-Oct-09 20:26 
GeneralRe: Read from text file Pin
sonualex21-Oct-09 21:32
sonualex21-Oct-09 21:32 
GeneralRe: Read from text file Pin
theCPkid22-Oct-09 1:25
theCPkid22-Oct-09 1:25 
QuestionRe: Read from text file Pin
David Crow22-Oct-09 4:34
David Crow22-Oct-09 4:34 
AnswerRe: Read from text file Pin
sonualex26-Oct-09 21:21
sonualex26-Oct-09 21:21 

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.