Click here to Skip to main content
15,892,005 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Failed new operator Pin
Joe Smith IX17-Sep-07 9:47
Joe Smith IX17-Sep-07 9:47 
GeneralRe: Failed new operator Pin
Nathan Holt at EMOM17-Sep-07 10:24
Nathan Holt at EMOM17-Sep-07 10:24 
GeneralRe: Failed new operator Pin
Joe Smith IX17-Sep-07 16:34
Joe Smith IX17-Sep-07 16:34 
QuestionRe: Failed new operator Pin
Mark Salsbery17-Sep-07 18:28
Mark Salsbery17-Sep-07 18:28 
AnswerRe: Failed new operator Pin
Joe Smith IX17-Sep-07 21:21
Joe Smith IX17-Sep-07 21:21 
GeneralRe: Failed new operator Pin
Mark Salsbery18-Sep-07 5:16
Mark Salsbery18-Sep-07 5:16 
GeneralRe: Failed new operator Pin
Nathan Holt at EMOM18-Sep-07 7:29
Nathan Holt at EMOM18-Sep-07 7:29 
GeneralRe: Failed new operator Pin
Joe Smith IX18-Sep-07 7:47
Joe Smith IX18-Sep-07 7:47 
You are right about the conflict is with the definition of DEBUG_NEW operator in debug builds. As soon as I commented all instances, it compiled fine.
/*
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
*/

I can't find any code that overload new operator in the class, though...
Using the push_macro and pop_macro resulted this error:
#pragma push_macro : 'new' is not currently defined as a macro

Anyway, what's the effect I will get by commenting out the definition of DEBUG_NEW? Thanks.
GeneralRe: Failed new operator Pin
Mark Salsbery18-Sep-07 8:45
Mark Salsbery18-Sep-07 8:45 
GeneralRe: Failed new operator Pin
Joe Smith IX18-Sep-07 16:30
Joe Smith IX18-Sep-07 16:30 
GeneralRe: Failed new operator Pin
Mark Salsbery20-Sep-07 5:54
Mark Salsbery20-Sep-07 5:54 
GeneralRe: Failed new operator Pin
Mark Salsbery17-Sep-07 10:39
Mark Salsbery17-Sep-07 10:39 
QuestionMFC related problem Pin
ddspliting17-Sep-07 7:24
ddspliting17-Sep-07 7:24 
AnswerRe: MFC related problem Pin
Ali Rafiee17-Sep-07 7:59
Ali Rafiee17-Sep-07 7:59 
GeneralRe: MFC related problem Pin
ddspliting17-Sep-07 8:22
ddspliting17-Sep-07 8:22 
AnswerRe: MFC related problem Pin
David Crow17-Sep-07 8:18
David Crow17-Sep-07 8:18 
GeneralRe: MFC related problem Pin
ddspliting17-Sep-07 8:36
ddspliting17-Sep-07 8:36 
QuestionRe: MFC related problem Pin
David Crow17-Sep-07 8:43
David Crow17-Sep-07 8:43 
AnswerRe: MFC related problem Pin
ddspliting17-Sep-07 8:48
ddspliting17-Sep-07 8:48 
QuestionRe: MFC related problem Pin
David Crow17-Sep-07 10:05
David Crow17-Sep-07 10:05 
AnswerRe: MFC related problem Pin
led mike17-Sep-07 10:11
led mike17-Sep-07 10:11 
GeneralRe: MFC related problem Pin
Mark Salsbery17-Sep-07 10:40
Mark Salsbery17-Sep-07 10:40 
AnswerRe: MFC related problem Pin
ddspliting18-Sep-07 6:59
ddspliting18-Sep-07 6:59 
QuestionCSpinButtonCtrl and WM_VSCROLL Pin
Californian217-Sep-07 6:06
Californian217-Sep-07 6:06 
QuestionRe: CSpinButtonCtrl and WM_VSCROLL Pin
David Crow17-Sep-07 6:51
David Crow17-Sep-07 6:51 

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.