Click here to Skip to main content
16,010,473 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: vc7 application problems in win98 Pin
Stefan Dahlin22-Jan-03 8:15
Stefan Dahlin22-Jan-03 8:15 
GeneralDrawing Unicode Text with GDI Pin
alibobba21-Jan-03 10:55
alibobba21-Jan-03 10:55 
GeneralRe: Drawing Unicode Text with GDI Pin
Stefan Pedersen21-Jan-03 15:21
Stefan Pedersen21-Jan-03 15:21 
GeneralCOM and Multithreading Pin
act_x21-Jan-03 10:44
act_x21-Jan-03 10:44 
GeneralRe: COM and Multithreading Pin
John M. Drescher21-Jan-03 11:02
John M. Drescher21-Jan-03 11:02 
GeneralRe: COM and Multithreading Pin
act_x21-Jan-03 11:12
act_x21-Jan-03 11:12 
GeneralRe: COM and Multithreading Pin
Stefan Pedersen21-Jan-03 11:03
Stefan Pedersen21-Jan-03 11:03 
GeneralQuestion about NEW throwing in MFC app Pin
FrankRizzo21-Jan-03 10:38
FrankRizzo21-Jan-03 10:38 
We are all aware that by default VC++ implementation of NEW does not throw an exception (as it should based on C++ standards).

MSDN has an article related to using set_new_handler() to make new throw std::bad_alloc when it fails instead of returning NULL.

My question is how is that handled in an MFC app? For instance lets say you have a method named Foo(), and Foo() might throw std::bad_alloc due to it calling new internally. If you called Foo() from an MFC class method you override, and did not have a try/catch, would MFC catch the bad_alloc?

In fact, what impact does it have at all on MFC if you change NEW to throw?

I'm also curious how other developers handle NEW... Do you leave it returning NULL by default? If so, won't that cause problems if you use STL and an STL method calls new and it throws?
GeneralRe: Question about NEW throwing in MFC app Pin
Michael Dunn21-Jan-03 10:55
sitebuilderMichael Dunn21-Jan-03 10:55 
GeneralRe: Question about NEW throwing in MFC app Pin
FrankRizzo21-Jan-03 11:11
FrankRizzo21-Jan-03 11:11 
GeneralTransparent Group Box , huh?! Pin
brianwelsch21-Jan-03 10:11
brianwelsch21-Jan-03 10:11 
GeneralRe: Transparent Group Box , huh?! Pin
dazinith21-Jan-03 10:30
dazinith21-Jan-03 10:30 
GeneralRe: Transparent Group Box , huh?! Pin
Brit21-Jan-03 14:00
Brit21-Jan-03 14:00 
GeneralCatching maximize of an app Pin
The Lady of Shallots21-Jan-03 10:04
The Lady of Shallots21-Jan-03 10:04 
GeneralRe: Catching maximize of an app Pin
AlexO21-Jan-03 10:14
AlexO21-Jan-03 10:14 
GeneralRe: Catching maximize of an app Pin
The Lady of Shallots21-Jan-03 10:21
The Lady of Shallots21-Jan-03 10:21 
QuestionSimulate a keypress, or go to the next field? Pin
dazinith21-Jan-03 9:54
dazinith21-Jan-03 9:54 
AnswerRe: Simulate a keypress, or go to the next field? Pin
Joaquín M López Muñoz21-Jan-03 9:55
Joaquín M López Muñoz21-Jan-03 9:55 
GeneralRe: Simulate a keypress, or go to the next field? Pin
dazinith21-Jan-03 10:29
dazinith21-Jan-03 10:29 
Question"Not Responding" - how to prevent? Pin
ExtraLean21-Jan-03 9:43
ExtraLean21-Jan-03 9:43 
AnswerRe: "Not Responding" - how to prevent? Pin
Christian Graus21-Jan-03 9:50
protectorChristian Graus21-Jan-03 9:50 
GeneralRe: "Not Responding" - how to prevent? Pin
Joaquín M López Muñoz21-Jan-03 9:51
Joaquín M López Muñoz21-Jan-03 9:51 
GeneralRe: "Not Responding" - how to prevent? Pin
Christian Graus21-Jan-03 10:47
protectorChristian Graus21-Jan-03 10:47 
GeneralRe: "Not Responding" - how to prevent? Pin
Joaquín M López Muñoz21-Jan-03 11:03
Joaquín M López Muñoz21-Jan-03 11:03 
GeneralRe: "Not Responding" - how to prevent? Pin
Christian Graus21-Jan-03 13:03
protectorChristian Graus21-Jan-03 13:03 

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.