A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
It appears that you are trying to build an MFC application. The MFC framework implements its own custom versions of new and delete. I don't recommend trying to replace the framework's memory management implementation.