Click here to Skip to main content
16,005,552 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionConstant pointer Pin
ragavan7-May-07 1:24
ragavan7-May-07 1:24 
AnswerRe: Constant pointer Pin
Cedric Moonen7-May-07 1:31
Cedric Moonen7-May-07 1:31 
AnswerRe: Constant pointer Pin
toxcct7-May-07 1:44
toxcct7-May-07 1:44 
AnswerRe: Constant pointer Pin
Michael Dunn7-May-07 8:45
sitebuilderMichael Dunn7-May-07 8:45 
Questionoverloading new operator Pin
ragavan7-May-07 1:23
ragavan7-May-07 1:23 
AnswerRe: overloading new operator Pin
Cedric Moonen7-May-07 1:26
Cedric Moonen7-May-07 1:26 
GeneralRe: overloading new operator Pin
Hans Dietrich7-May-07 1:40
mentorHans Dietrich7-May-07 1:40 
QuestionRe: overloading new operator Pin
James R. Twine7-May-07 3:26
James R. Twine7-May-07 3:26 
Cedric Moonen wrote:
It is certainly not necessary to overload these operators. It can be done, sure, but it is never needed. I never did that myself (and I don't see a reason why I would do so).


   Yikes!  Please be careful saying things like this to less-experienced developers - just because you never had a reason to do so does not mean that one does not exist. :P

Cedric Moonen wrote:
An example of what you can do by overloading these operators is what MFC does: it allows to track memory leaks.


   Unless MFC changed recently, I believe this was mostly done by the use of DEBUG_NEW instead of new, and this in turn happened thanks to a #define that was in effect for debug builds.  That is not really overloading new...

   Peace!

-=- James
Please rate this message - let me know if I helped or not!<HR>If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
See DeleteFXPFiles

AnswerRe: overloading new operator Pin
Cedric Moonen7-May-07 7:28
Cedric Moonen7-May-07 7:28 
AnswerRe: overloading new operator Pin
toxcct7-May-07 1:42
toxcct7-May-07 1:42 
AnswerRe: overloading new operator Pin
James R. Twine7-May-07 3:12
James R. Twine7-May-07 3:12 
QuestionCListCtrl Pin
study.sourabh7-May-07 0:43
study.sourabh7-May-07 0:43 
AnswerRe: CListCtrl Pin
Hans Dietrich7-May-07 1:31
mentorHans Dietrich7-May-07 1:31 
GeneralRe: CListCtrl Pin
study.sourabh7-May-07 3:03
study.sourabh7-May-07 3:03 
GeneralRe: CListCtrl Pin
Hans Dietrich7-May-07 3:36
mentorHans Dietrich7-May-07 3:36 
GeneralRe: CListCtrl Pin
study.sourabh7-May-07 18:02
study.sourabh7-May-07 18:02 
QuestionNP-complete riddle/algorithm Pin
Yariv6-May-07 23:56
Yariv6-May-07 23:56 
AnswerRe: NP-complete riddle/algorithm Pin
toxcct7-May-07 0:04
toxcct7-May-07 0:04 
GeneralRe: NP-complete riddle/algorithm Pin
Yariv7-May-07 8:47
Yariv7-May-07 8:47 
AnswerRe: NP-complete riddle/algorithm Pin
Hans Dietrich7-May-07 1:36
mentorHans Dietrich7-May-07 1:36 
GeneralRe: NP-complete riddle/algorithm Pin
Yariv7-May-07 8:46
Yariv7-May-07 8:46 
AnswerRe: NP-complete riddle/algorithm Pin
Yariv7-May-07 12:43
Yariv7-May-07 12:43 
QuestionScrollBar Presence in ListBox ? Pin
sayed_76-May-07 23:30
sayed_76-May-07 23:30 
AnswerRe: ScrollBar Presence in ListBox ? Pin
prasad_som6-May-07 23:44
prasad_som6-May-07 23:44 
QuestionHow to get PID / Process Name from Task Manager Pin
SNI6-May-07 23:11
SNI6-May-07 23:11 

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.