Click here to Skip to main content
15,917,320 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: implementing new Pin
Patje4-Feb-03 2:56
Patje4-Feb-03 2:56 
GeneralRe: implementing new Pin
Joaquín M López Muñoz4-Feb-03 4:33
Joaquín M López Muñoz4-Feb-03 4:33 
GeneralRe: implementing new Pin
Alvaro Mendez4-Feb-03 6:04
Alvaro Mendez4-Feb-03 6:04 
GeneralRe: implementing new Pin
Joaquín M López Muñoz4-Feb-03 6:25
Joaquín M López Muñoz4-Feb-03 6:25 
GeneralRe: implementing new Pin
Alvaro Mendez4-Feb-03 6:54
Alvaro Mendez4-Feb-03 6:54 
GeneralRe: implementing new Pin
AlexO4-Feb-03 2:46
AlexO4-Feb-03 2:46 
GeneralRe: implementing new Pin
Patje4-Feb-03 3:03
Patje4-Feb-03 3:03 
GeneralRe: implementing new Pin
AlexO4-Feb-03 3:22
AlexO4-Feb-03 3:22 
this is pretty much what MFC does in debug. You can try to adapt their approach.
1. Overload global new operator with some custom parameter
2. redefine new (see how MFC does it "#define DEBUG_NEW new(THIS_FILE, __LINE__)") to be redirected to your new

do not forget array new()[]. do the same for delete.

P.S. I would question the performance lose in your approach, but I guess it is worth it for you.
GeneralRe: implementing new Pin
Alvaro Mendez4-Feb-03 5:20
Alvaro Mendez4-Feb-03 5:20 
GeneralPlatform SDK installing ! Pin
Hadi Rezaee4-Feb-03 2:06
Hadi Rezaee4-Feb-03 2:06 
GeneralRe: Platform SDK installing ! Pin
jhwurmbach4-Feb-03 3:12
jhwurmbach4-Feb-03 3:12 
GeneralRe: Platform SDK installing ! Pin
Abbas_Riazi4-Feb-03 4:03
professionalAbbas_Riazi4-Feb-03 4:03 
GeneralRe: Platform SDK installing ! Pin
ursus zeta4-Feb-03 12:26
ursus zeta4-Feb-03 12:26 
GeneralNT/Win2K/XP Maximum File Size Pin
Glynn4-Feb-03 1:30
Glynn4-Feb-03 1:30 
GeneralRe: NT/Win2K/XP Maximum File Size Pin
xxhimanshu4-Feb-03 2:06
xxhimanshu4-Feb-03 2:06 
GeneralRe: NT/Win2K/XP Maximum File Size Pin
Abbas_Riazi4-Feb-03 4:06
professionalAbbas_Riazi4-Feb-03 4:06 
GeneralRe: NT/Win2K/XP Maximum File Size Pin
Glynn5-Feb-03 1:16
Glynn5-Feb-03 1:16 
GeneralRe: NT/Win2K/XP Maximum File Size Pin
Mike Nordell5-Feb-03 4:05
Mike Nordell5-Feb-03 4:05 
GeneralRe: NT/Win2K/XP Maximum File Size Pin
Mike Nordell5-Feb-03 0:34
Mike Nordell5-Feb-03 0:34 
GeneralUpdate AppName in TaskBar Pin
leander4-Feb-03 1:25
leander4-Feb-03 1:25 
GeneralRe: Update AppName in TaskBar Pin
Abbas_Riazi4-Feb-03 4:18
professionalAbbas_Riazi4-Feb-03 4:18 
GeneralRe: Update AppName in TaskBar Pin
leander4-Feb-03 4:52
leander4-Feb-03 4:52 
GeneralIntefacing a database with ANSI C++ Pin
Jerome Conus4-Feb-03 1:07
Jerome Conus4-Feb-03 1:07 
GeneralRe: Intefacing a database with ANSI C++ Pin
markkuk4-Feb-03 1:22
markkuk4-Feb-03 1:22 
GeneralRe: Intefacing a database with ANSI C++ Pin
Jerome Conus4-Feb-03 1:27
Jerome Conus4-Feb-03 1:27 

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.