Click here to Skip to main content
16,011,744 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: whats wrong with this code Pin
lahom22-May-08 20:50
lahom22-May-08 20:50 
GeneralRe: whats wrong with this code Pin
Rajkumar R22-May-08 20:58
Rajkumar R22-May-08 20:58 
GeneralRe: whats wrong with this code Pin
lahom22-May-08 21:10
lahom22-May-08 21:10 
GeneralRe: whats wrong with this code Pin
Rajkumar R22-May-08 21:35
Rajkumar R22-May-08 21:35 
GeneralRe: whats wrong with this code Pin
lahom22-May-08 21:47
lahom22-May-08 21:47 
GeneralRe: whats wrong with this code Pin
Rajkumar R23-May-08 0:42
Rajkumar R23-May-08 0:42 
GeneralRe: whats wrong with this code Pin
lahom23-May-08 6:59
lahom23-May-08 6:59 
GeneralRe: whats wrong with this code Pin
Rajkumar R24-May-08 3:23
Rajkumar R24-May-08 3:23 
It seems file is not opened properly, you need to check the return value of CFile::Open and the get the error status by passing CFileException parameter and you can get the error string using CFileException::GetErrorMessage. the usage is given in [CFile::Open^].

if a function returns other than void you should properly check the return value other wise what is the need of return value, by the way check whether path is correct.

f.Open(path, CFile::modeRead);
QuestionFile Serialization versus old style data saving on files Pin
Kwanalouie22-May-08 5:56
Kwanalouie22-May-08 5:56 
AnswerRe: File Serialization versus old style data saving on files Pin
CPallini22-May-08 6:02
mveCPallini22-May-08 6:02 
GeneralRe: File Serialization versus old style data saving on files Pin
toxcct22-May-08 6:30
toxcct22-May-08 6:30 
GeneralRe: File Serialization versus old style data saving on files Pin
CPallini22-May-08 7:28
mveCPallini22-May-08 7:28 
AnswerRe: File Serialization versus old style data saving on files Pin
Hamid_RT22-May-08 6:46
Hamid_RT22-May-08 6:46 
AnswerRe: File Serialization versus old style data saving on files Pin
David Crow22-May-08 6:48
David Crow22-May-08 6:48 
QuestionProblem with CHttpFile and HTML Pin
Sylv3322-May-08 4:06
Sylv3322-May-08 4:06 
QuestionHow long int can the threads ID be... Pin
pl_kode22-May-08 4:03
pl_kode22-May-08 4:03 
AnswerRe: How long int can the threads ID be... Pin
CPallini22-May-08 4:13
mveCPallini22-May-08 4:13 
AnswerRe: How long int can the threads ID be... Pin
Mike Dimmick22-May-08 4:39
Mike Dimmick22-May-08 4:39 
QuestionProblem with select row in list control Pin
tataxin22-May-08 2:56
tataxin22-May-08 2:56 
AnswerRe: Problem with select row in list control Pin
David Crow22-May-08 3:28
David Crow22-May-08 3:28 
GeneralRe: Problem with select row in list control Pin
tataxin22-May-08 3:43
tataxin22-May-08 3:43 
QuestionRe: Problem with select row in list control Pin
David Crow22-May-08 4:16
David Crow22-May-08 4:16 
AnswerRe: Problem with select row in list control Pin
tataxin22-May-08 4:35
tataxin22-May-08 4:35 
GeneralRe: Problem with select row in list control Pin
David Crow22-May-08 5:41
David Crow22-May-08 5:41 
AnswerRe: Problem with select row in list control Pin
tataxin22-May-08 5:49
tataxin22-May-08 5:49 

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.