Click here to Skip to main content
16,005,080 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Book Recommendation Pin
Hamid_RT7-Dec-06 17:55
Hamid_RT7-Dec-06 17:55 
Questionloading an image Pin
Sunil P V7-Dec-06 2:29
Sunil P V7-Dec-06 2:29 
AnswerRe: loading an image Pin
Chris Losinger7-Dec-06 8:32
professionalChris Losinger7-Dec-06 8:32 
AnswerRe: loading an image Pin
Hamid_RT7-Dec-06 17:59
Hamid_RT7-Dec-06 17:59 
QuestionCFile does not open Pin
BadJerry7-Dec-06 2:27
BadJerry7-Dec-06 2:27 
AnswerRe: CFile does not open Pin
prasad_som7-Dec-06 2:39
prasad_som7-Dec-06 2:39 
GeneralRe: CFile does not open Pin
BadJerry7-Dec-06 2:45
BadJerry7-Dec-06 2:45 
GeneralRe: CFile does not open Pin
prasad_som7-Dec-06 3:12
prasad_som7-Dec-06 3:12 
CFile::Open uses CreateFile internally, to create file on disk. This function fails in two scenario, first one is obviously failure of CreateFile API, second one is if there is problem with file path( too long ,etc.).
It uses _AfxFullPath2 for converting relative path to absolute path. Failure of this function may also be reason.

If you debug CFile::Open, these are three places from where, function is retuning FALSE.


I'm assuming, in your case, execution doesn't reach till CreateFile, as you are not getting useful information from exception object.


GeneralRe: CFile does not open Pin
BadJerry7-Dec-06 4:54
BadJerry7-Dec-06 4:54 
GeneralRe: CFile does not open Pin
prasad_som7-Dec-06 18:22
prasad_som7-Dec-06 18:22 
AnswerRe: CFile does not open Pin
Mark Salsbery7-Dec-06 5:44
Mark Salsbery7-Dec-06 5:44 
QuestionTypecasting incompatible types Pin
WillemM7-Dec-06 2:22
WillemM7-Dec-06 2:22 
AnswerRe: Typecasting incompatible types Pin
Mark Salsbery7-Dec-06 5:57
Mark Salsbery7-Dec-06 5:57 
GeneralRe: Typecasting incompatible types Pin
WillemM7-Dec-06 6:26
WillemM7-Dec-06 6:26 
GeneralRe: Typecasting incompatible types Pin
Mark Salsbery7-Dec-06 6:43
Mark Salsbery7-Dec-06 6:43 
GeneralRe: Typecasting incompatible types Pin
WillemM7-Dec-06 6:44
WillemM7-Dec-06 6:44 
GeneralRe: Typecasting incompatible types Pin
Mark Salsbery7-Dec-06 6:51
Mark Salsbery7-Dec-06 6:51 
AnswerRe: Typecasting incompatible types [modified] Pin
Stephen Hewitt7-Dec-06 11:52
Stephen Hewitt7-Dec-06 11:52 
QuestionBackup & Recovery Utility for MS Exchange Pin
Vinay Jain7-Dec-06 2:12
Vinay Jain7-Dec-06 2:12 
Questionhighlight list control items using mouse Pin
YaronNir7-Dec-06 2:06
YaronNir7-Dec-06 2:06 
AnswerRe: highlight list control items using mouse Pin
Sunil P V7-Dec-06 2:28
Sunil P V7-Dec-06 2:28 
Questionload image Pin
Sunil P V7-Dec-06 1:34
Sunil P V7-Dec-06 1:34 
AnswerRe: load image Pin
Hamid_RT7-Dec-06 17:50
Hamid_RT7-Dec-06 17:50 
GeneralRe: load image Pin
Sunil P V7-Dec-06 19:02
Sunil P V7-Dec-06 19:02 
GeneralRe: load image Pin
ThatsAlok7-Dec-06 19:23
ThatsAlok7-Dec-06 19:23 

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.