error C2661: 'CObject::operator new' : no overloaded function takes 4 arguments
问题 I have a memory leak that I'm trying to hunt down in my mfc program. Typically I would do something like the following: header file // Leak Detection #if defined(WIN32) && defined(_DEBUG) #define _CRTDBG_MAP_ALLOC #include <stdlib.h> #include <crtdbg.h> #endif cpp file // Leak detection #if defined(WIN32) && defined(_DEBUG) && defined(_CRTDBG_MAP_ALLOC) #ifdef DEBUG_NEW #undef DEBUG_NEW #endif #define DEBUG_NEW new( _NORMAL_BLOCK, __FILE__, __LINE__ ) #define new DEBUG_NEW #endif This