Click here to Skip to main content
15,886,110 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionWhich SDK should I download? Pin
kapardhi19-Apr-09 21:59
kapardhi19-Apr-09 21:59 
AnswerRe: Which SDK should I download? Pin
zhanzongru19-Apr-09 22:32
zhanzongru19-Apr-09 22:32 
QuestionDownload Pin
p_196019-Apr-09 21:27
p_196019-Apr-09 21:27 
AnswerRe: Download Pin
_AnsHUMAN_ 19-Apr-09 21:31
_AnsHUMAN_ 19-Apr-09 21:31 
AnswerRe: Download Pin
Hamid_RT20-Apr-09 0:06
Hamid_RT20-Apr-09 0:06 
QuestionMemory Leak Pin
hhhakan19-Apr-09 21:17
hhhakan19-Apr-09 21:17 
AnswerRe: Memory Leak Pin
KarstenK19-Apr-09 21:46
mveKarstenK19-Apr-09 21:46 
AnswerRe: Memory Leak [modified] Pin
Stuart Dootson19-Apr-09 21:58
professionalStuart Dootson19-Apr-09 21:58 
I note that you're using MFC - try putting these lines in your stdafx.h before any #includes.

#if defined(DEBUG)
#define new DEBUG_NEW
#endif


That way, allocations are tracked slightly better - I get messages like this:

Detected memory leaks!
Dumping objects ->
d:\mycode\mydlg.cpp(228) : {442} normal block at 0x0034EF00, 4 bytes long.
 Data: <    > CD CD CD CD 
Object dump complete.


You can double-click on the d:\mycode\mydlg.cpp(228) : {442} normal block at 0x0034EF00, 4 bytes long. line and it will take you to the source that did the leaking allocation.

Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

modified on Monday, April 20, 2009 7:07 AM

QuestionCan I overload operators in C? Pin
Aakash Johari19-Apr-09 20:31
Aakash Johari19-Apr-09 20:31 
AnswerRe: Can I overload operators in C? Pin
_AnsHUMAN_ 19-Apr-09 20:42
_AnsHUMAN_ 19-Apr-09 20:42 
GeneralRe: Can I overload operators in C? Pin
Aakash Johari19-Apr-09 20:59
Aakash Johari19-Apr-09 20:59 
GeneralRe: Can I overload operators in C? Pin
Cedric Moonen19-Apr-09 21:12
Cedric Moonen19-Apr-09 21:12 
GeneralRe: Can I overload operators in C? Pin
Aakash Johari20-Apr-09 2:20
Aakash Johari20-Apr-09 2:20 
GeneralRe: Can I overload operators in C? Pin
CPallini19-Apr-09 21:13
mveCPallini19-Apr-09 21:13 
AnswerRe: Can I overload operators in C? Pin
Jijo.Raj19-Apr-09 20:43
Jijo.Raj19-Apr-09 20:43 
QuestionHow do I check whether a share path exists? Pin
SherTeks19-Apr-09 20:00
SherTeks19-Apr-09 20:00 
AnswerRe: How do I check whether a share path exists? Pin
_AnsHUMAN_ 19-Apr-09 20:07
_AnsHUMAN_ 19-Apr-09 20:07 
AnswerRe: How do I check whether a share path exists? Pin
Jijo.Raj19-Apr-09 20:46
Jijo.Raj19-Apr-09 20:46 
QuestionFiles and Folder Pin
Davitor19-Apr-09 18:37
Davitor19-Apr-09 18:37 
AnswerRe: Files and Folder [modified] Pin
Jijo.Raj19-Apr-09 18:53
Jijo.Raj19-Apr-09 18:53 
AnswerRe: Files and Folder Pin
vijay_aroli19-Apr-09 19:35
vijay_aroli19-Apr-09 19:35 
AnswerRe: Files and Folder Pin
_AnsHUMAN_ 19-Apr-09 19:35
_AnsHUMAN_ 19-Apr-09 19:35 
AnswerRe: Files and Folder Pin
Hamid_RT19-Apr-09 19:49
Hamid_RT19-Apr-09 19:49 
Questionauto closing messagebox Pin
gamefreak229119-Apr-09 17:15
gamefreak229119-Apr-09 17:15 
AnswerRe: auto closing messagebox Pin
N a v a n e e t h19-Apr-09 17:32
N a v a n e e t h19-Apr-09 17:32 

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.