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

C / C++ / MFC

 
GeneralError in adding submenu to the File Menu Pin
Binayak4-Sep-03 13:28
Binayak4-Sep-03 13:28 
GeneralExceptions Pin
Rickard Andersson204-Sep-03 13:03
Rickard Andersson204-Sep-03 13:03 
GeneralRe: Exceptions Pin
dog_spawn4-Sep-03 13:16
dog_spawn4-Sep-03 13:16 
GeneralRe: Exceptions Pin
Rickard Andersson204-Sep-03 22:34
Rickard Andersson204-Sep-03 22:34 
GeneralRe: Exceptions Pin
Alvaro Mendez4-Sep-03 17:40
Alvaro Mendez4-Sep-03 17:40 
GeneralRe: Exceptions Pin
Rickard Andersson204-Sep-03 22:41
Rickard Andersson204-Sep-03 22:41 
GeneralRe: Exceptions Pin
jhwurmbach5-Sep-03 1:18
jhwurmbach5-Sep-03 1:18 
GeneralRe: Exceptions Pin
Andrew Walker5-Sep-03 1:32
Andrew Walker5-Sep-03 1:32 
I agree with (almost Wink | ;) ) everything above, but also believe...

That you should only consider throwing exceptions when you fully understand the consequences of doing so, specifically issues to do with the overheads, resource aquistion and stack unwinding. Writing consistantly exception safe c++ code is extremely hard, even for the best programmers.

Herb Sutter and Scott Meyers have some superb articles on Exception safety, I strongly recommend you look at their material.

Error codes are appropriate in situations where performance is absolutely critical or exception safety is not an option. Two examples are some operating systems, old versions of CE AFAIK, and the standard IOStreams library.

The C/C++ Users Journal tend to spend a significant ammount of time covering this type of issue.


If you can keep you head when all about you
Are losing theirs and blaming it on you;
If you can dream - and not make dreams your master;
If you can think - and not make thoughts you aim;
Yours is the Earth and everything that's in it.

Rudyard Kipling

Questionhow to schedule a a thread to a specific CPU? Pin
Anonymous4-Sep-03 12:46
Anonymous4-Sep-03 12:46 
AnswerRe: how to schedule a a thread to a specific CPU? Pin
Michael Dunn4-Sep-03 13:20
sitebuilderMichael Dunn4-Sep-03 13:20 
GeneralRe: how to schedule a a thread to a specific CPU? Pin
Anonymous5-Sep-03 13:15
Anonymous5-Sep-03 13:15 
GeneralNeed for derived class to show base clase object. Pin
WREY4-Sep-03 12:29
WREY4-Sep-03 12:29 
Generalbad design Pin
dog_spawn4-Sep-03 12:46
dog_spawn4-Sep-03 12:46 
GeneralTalk is cheap!! Show me the money!! Pin
WREY4-Sep-03 14:29
WREY4-Sep-03 14:29 
GeneralEr Pin
dog_spawn4-Sep-03 16:36
dog_spawn4-Sep-03 16:36 
GeneralRe: Need for derived class to show base clase object. Pin
Alvaro Mendez4-Sep-03 17:28
Alvaro Mendez4-Sep-03 17:28 
GeneralRe: Need for derived class to show base clase object. Pin
WREY4-Sep-03 21:17
WREY4-Sep-03 21:17 
GeneralRe: Need for derived class to show base clase object. Pin
Jason Henderson4-Sep-03 18:24
Jason Henderson4-Sep-03 18:24 
GeneralRe: Need for derived class to show base clase object. Pin
WREY4-Sep-03 22:25
WREY4-Sep-03 22:25 
GeneralSetting intermediate files path to a global folder using an environment variable Pin
Jean-Marc Molina4-Sep-03 12:08
Jean-Marc Molina4-Sep-03 12:08 
QuestionHow to open a folder using MFC Pin
nachilau4-Sep-03 10:57
nachilau4-Sep-03 10:57 
AnswerRe: How to open a folder using MFC Pin
Ravi Bhavnani4-Sep-03 11:13
professionalRavi Bhavnani4-Sep-03 11:13 
GeneralRe: How to open a folder using MFC Pin
nachilau4-Sep-03 12:01
nachilau4-Sep-03 12:01 
GeneralRe: How to open a folder using MFC Pin
Rickard Andersson204-Sep-03 12:09
Rickard Andersson204-Sep-03 12:09 
GeneralRe: How to open a folder using MFC Pin
Ravi Bhavnani4-Sep-03 12:43
professionalRavi Bhavnani4-Sep-03 12:43 

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.