Click here to Skip to main content
16,004,782 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Function pointers from DLL [modified] Pin
Michael Siroen27-Apr-08 11:51
Michael Siroen27-Apr-08 11:51 
GeneralGet time of system Pin
phap27-Apr-08 8:31
phap27-Apr-08 8:31 
GeneralRe: Get time of system Pin
Saurabh.Garg27-Apr-08 9:10
Saurabh.Garg27-Apr-08 9:10 
GeneralRe: Get time of system Pin
Hamid_RT29-Apr-08 1:25
Hamid_RT29-Apr-08 1:25 
Generalhelp please Pin
rasred27-Apr-08 8:23
rasred27-Apr-08 8:23 
GeneralCStdio exception handler Pin
Member 330122927-Apr-08 4:20
Member 330122927-Apr-08 4:20 
GeneralRe: CStdio exception handler Pin
Jijo.Raj27-Apr-08 6:22
Jijo.Raj27-Apr-08 6:22 
GeneralRe: CStdio exception handler Pin
Randor 27-Apr-08 10:28
professional Randor 27-Apr-08 10:28 
Member 3301229 wrote:
and I don't know why it throws an exception; perhaps lack of a handle?)


Why are you not using CFileException[^] to determine why the failure occurs. You should modify the catch block as: catch(CFileException* e)


Member 3301229 wrote:
1) Would you use another way to open and read the file?


Not really. If it failed the first time it will probably fail the second time.

Member 3301229 wrote:
2) How would you deal with the rare exception?


I would throw or log an error so I could determine the cause for failuire.[^].

One more thing... Make sure that you limit the code in your try/catch block so that it only contains code pertaining to CStdioFile operations.

Best Wishes.
-David Delaune
Questionunicode const string must be like: L"abc"? Pin
followait26-Apr-08 23:26
followait26-Apr-08 23:26 
AnswerRe: unicode const string must be like: L"abc"? Pin
CPallini27-Apr-08 4:34
mveCPallini27-Apr-08 4:34 
AnswerRe: unicode const string must be like: L"abc"? Pin
Mark Salsbery27-Apr-08 8:04
Mark Salsbery27-Apr-08 8:04 
GeneralRe: unicode const string must be like: L"abc"? Pin
followait27-Apr-08 19:48
followait27-Apr-08 19:48 
AnswerRe: unicode const string must be like: L"abc"? Pin
Ozer Karaagac27-Apr-08 10:51
professionalOzer Karaagac27-Apr-08 10:51 
GeneralI want to generate a list of all combinatons i.e nCr combinations Pin
Member 465568526-Apr-08 22:01
Member 465568526-Apr-08 22:01 
AnswerRe: I want to generate a list of all combinatons i.e nCr combinations Pin
Maruf Maniruzzaman27-Apr-08 1:57
Maruf Maniruzzaman27-Apr-08 1:57 
GeneralRe: I want to generate a list of all combinatons i.e nCr combinations Pin
Member 465568527-Apr-08 2:16
Member 465568527-Apr-08 2:16 
GeneralRe: I want to generate a list of all combinatons i.e nCr combinations Pin
Saurabh.Garg27-Apr-08 2:52
Saurabh.Garg27-Apr-08 2:52 
GeneralRe: I want to generate a list of all combinatons i.e nCr combinations Pin
Saurabh.Garg27-Apr-08 2:18
Saurabh.Garg27-Apr-08 2:18 
QuestionHow to get text extent in a rich edit control? Pin
Philstix26-Apr-08 18:14
Philstix26-Apr-08 18:14 
GeneralRe: How to get text extent in a rich edit control? Pin
Gary R. Wheeler27-Apr-08 2:42
Gary R. Wheeler27-Apr-08 2:42 
GeneralRe: How to get text extent in a rich edit control? Pin
Philstix27-Apr-08 10:17
Philstix27-Apr-08 10:17 
Generalequivalent vc++ class for a vb class Pin
lahom26-Apr-08 12:54
lahom26-Apr-08 12:54 
GeneralRe: equivalent vc++ class for a vb class Pin
Saurabh.Garg26-Apr-08 15:52
Saurabh.Garg26-Apr-08 15:52 
GeneralRe: equivalent vc++ class for a vb class Pin
Ozer Karaagac27-Apr-08 3:01
professionalOzer Karaagac27-Apr-08 3:01 
GeneralRe: equivalent vc++ class for a vb class Pin
lahom3-May-08 8:45
lahom3-May-08 8:45 

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.