Click here to Skip to main content
15,907,001 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralAnybody???? Pin
vcseeker22-May-03 2:04
vcseeker22-May-03 2:04 
GeneralRe: OLE-Automation debugging problem. Pin
AlexO22-May-03 4:17
AlexO22-May-03 4:17 
GeneralRe: OLE-Automation debugging problem. Pin
vcseeker22-May-03 21:48
vcseeker22-May-03 21:48 
GeneralVC6 Add-in for selecting configuration Pin
John Oliver22-May-03 0:12
John Oliver22-May-03 0:12 
GeneralRe: VC6 Add-in for selecting configuration Pin
John Oliver22-May-03 0:21
John Oliver22-May-03 0:21 
GeneralRe: VC6 Add-in for selecting configuration Pin
Pavel Klocek22-May-03 0:32
Pavel Klocek22-May-03 0:32 
GeneralRe: VC6 Add-in for selecting configuration Pin
John Oliver22-May-03 0:34
John Oliver22-May-03 0:34 
GeneralMemory Tracking 2 Pin
The_Server22-May-03 0:05
The_Server22-May-03 0:05 
Hi all...
thank you for reading.

I tried to overload the new and delete operators,
and it didn't work.
#include <stdio.h>
#include <conio.h>
 
void * operator new( unsigned int cb );
void operator delete (void * mem);

void main()
{
  char * var= new char[8];
  
  if (var)
    delete []var;
}
 
void * operator new( unsigned int cb )
{
    printf("allocating...\n");
    void *res = NULL;
    return res;
}

void operator delete (void * mem)
{
  if (mem)
    printf("deallocating...\n");
}


and the original new and delete was called;
not mine...
please helpWTF | :WTF:

=-=-=-=-=-=-=
Rose | [Rose] The Server
=-=-=-=-=-=-=
GeneralRe: Memory Tracking 2 Pin
Neville Franks22-May-03 0:26
Neville Franks22-May-03 0:26 
GeneralRe: Memory Tracking 2 Pin
The_Server22-May-03 1:42
The_Server22-May-03 1:42 
GeneralRe: Memory Tracking 2 Pin
Neville Franks22-May-03 1:49
Neville Franks22-May-03 1:49 
GeneralRe: Memory Tracking 2 Pin
The_Server22-May-03 9:52
The_Server22-May-03 9:52 
GeneralRe: Memory Tracking 2 Pin
Neville Franks22-May-03 10:24
Neville Franks22-May-03 10:24 
GeneralRe: Memory Tracking 2 Pin
Maxwell Chen22-May-03 2:02
Maxwell Chen22-May-03 2:02 
GeneralRe: Memory Tracking 2 Pin
Maxwell Chen22-May-03 1:55
Maxwell Chen22-May-03 1:55 
GeneralRe: Memory Tracking 2 Pin
Neville Franks22-May-03 2:34
Neville Franks22-May-03 2:34 
GeneralRe: Memory Tracking 2 Pin
Maxwell Chen22-May-03 16:40
Maxwell Chen22-May-03 16:40 
Generalincluding resources from static library in vc++ .net Pin
roel_22-May-03 0:01
roel_22-May-03 0:01 
GeneralRe: including resources from static library in vc++ .net Pin
roel_22-May-03 0:10
roel_22-May-03 0:10 
GeneralRemoving Duplicates from CListCtrl Pin
si_6921-May-03 23:56
si_6921-May-03 23:56 
GeneralRe: Removing Duplicates from CListCtrl Pin
Alin Negru22-May-03 0:15
Alin Negru22-May-03 0:15 
GeneralRe: Removing Duplicates from CListCtrl Pin
David Crow22-May-03 2:37
David Crow22-May-03 2:37 
GeneralRe: STRANGE PROBLEM Pin
Neville Franks21-May-03 23:57
Neville Franks21-May-03 23:57 
GeneralPrevent webbrowser win activation Pin
rrrado21-May-03 22:36
rrrado21-May-03 22:36 
GeneralCString Class &amp; Find Function... Pin
JongGu Kim21-May-03 22:23
JongGu Kim21-May-03 22:23 

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.