Click here to Skip to main content
15,898,685 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Doxygen Command Help Required Pin
Steve Thresher10-Dec-09 6:18
Steve Thresher10-Dec-09 6:18 
QuestionWhat obsolete function will you miss in the future? Pin
ManicQin10-Dec-09 2:29
ManicQin10-Dec-09 2:29 
AnswerRe: What obsolete function will you miss in the future? Pin
CPallini10-Dec-09 3:12
mveCPallini10-Dec-09 3:12 
QuestionCDynLinkLibrary mem leaks in MFC/C++ lib linked to C application Pin
Chesnokov Yuriy10-Dec-09 1:04
professionalChesnokov Yuriy10-Dec-09 1:04 
AnswerRe: CDynLinkLibrary mem leaks in MFC/C++ lib linked to C application Pin
Richard MacCutchan10-Dec-09 2:18
mveRichard MacCutchan10-Dec-09 2:18 
AnswerRe: CDynLinkLibrary mem leaks in MFC/C++ lib linked to C application Pin
Chesnokov Yuriy10-Dec-09 3:10
professionalChesnokov Yuriy10-Dec-09 3:10 
GeneralRe: CDynLinkLibrary mem leaks in MFC/C++ lib linked to C application Pin
Richard MacCutchan10-Dec-09 4:45
mveRichard MacCutchan10-Dec-09 4:45 
AnswerRe: CDynLinkLibrary mem leaks in MFC/C++ lib linked to C application Pin
Roger Allen11-Dec-09 3:26
Roger Allen11-Dec-09 3:26 
When a DLL is loaded in, its automatic variables (ie globals) will be constructed during its initialisation phase.

Unfortunately, the leak checking code runs before these globals are destroyed by the system, so any dynamic allocation made by objecs within these are reported as memory leaks.

Possible solution:
If you control the source for the DLL, remove the globals and instanciate these dynamically in the DllMain() when dwReason == DLL_PROCESS_ATTACH and destroy them when dwReason == DLL_PROCESS_DETACH

If you vote me down, my score will only get lower

Questionhow to scroll the text in richedit control in vc++,mfc Pin
prerananit10-Dec-09 0:33
prerananit10-Dec-09 0:33 
AnswerRe: how to scroll the text in richedit control in vc++,mfc Pin
Migounette10-Dec-09 4:19
Migounette10-Dec-09 4:19 
QuestionVC++/MFC Pin
mathy10-Dec-09 0:30
mathy10-Dec-09 0:30 
AnswerRe: VC++/MFC Pin
Rajesh R Subramanian10-Dec-09 1:27
professionalRajesh R Subramanian10-Dec-09 1:27 
QuestionRe: VC++/MFC Pin
mathy10-Dec-09 20:32
mathy10-Dec-09 20:32 
AnswerRe: VC++/MFC Pin
Nelek11-Dec-09 0:34
protectorNelek11-Dec-09 0:34 
QuestionVC++ dll Pin
hrishiS10-Dec-09 0:20
hrishiS10-Dec-09 0:20 
AnswerRe: VC++ dll Pin
mathy10-Dec-09 0:27
mathy10-Dec-09 0:27 
AnswerRe: VC++ dll Pin
Richard MacCutchan10-Dec-09 2:24
mveRichard MacCutchan10-Dec-09 2:24 
Questiondesigning Modules with C++ Pin
hrishiS9-Dec-09 23:50
hrishiS9-Dec-09 23:50 
AnswerRe: designing Modules with C++ Pin
Rajesh R Subramanian10-Dec-09 0:00
professionalRajesh R Subramanian10-Dec-09 0:00 
GeneralRe: designing Modules with C++ Pin
hrishiS10-Dec-09 0:10
hrishiS10-Dec-09 0:10 
GeneralRe: designing Modules with C++ Pin
Rajesh R Subramanian10-Dec-09 0:20
professionalRajesh R Subramanian10-Dec-09 0:20 
GeneralRe: designing Modules with C++ Pin
hrishiS10-Dec-09 0:23
hrishiS10-Dec-09 0:23 
GeneralRe: designing Modules with C++ Pin
Rajesh R Subramanian10-Dec-09 0:36
professionalRajesh R Subramanian10-Dec-09 0:36 
AnswerRe: designing Modules with C++ Pin
Adam Roderick J10-Dec-09 0:10
Adam Roderick J10-Dec-09 0:10 
GeneralRe: designing Modules with C++ Pin
hrishiS10-Dec-09 0:14
hrishiS10-Dec-09 0:14 

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.