Click here to Skip to main content
15,912,665 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: Write REG_MULTI_SZ value in registry Pin
ThatsAlok3-Oct-11 23:55
ThatsAlok3-Oct-11 23:55 
GeneralRe: Write REG_MULTI_SZ value in registry Pin
Richard MacCutchan4-Oct-11 1:19
mveRichard MacCutchan4-Oct-11 1:19 
QuestionHow to disable warning popup in ActiveX Pin
Cpp_Com19-Sep-11 18:49
Cpp_Com19-Sep-11 18:49 
AnswerRe: How to disable warning popup in ActiveX Pin
KingsGambit19-Sep-11 20:19
KingsGambit19-Sep-11 20:19 
GeneralRe: How to disable warning popup in ActiveX Pin
Cpp_Com20-Sep-11 19:07
Cpp_Com20-Sep-11 19:07 
GeneralRe: How to disable warning popup in ActiveX Pin
KingsGambit20-Sep-11 20:36
KingsGambit20-Sep-11 20:36 
GeneralRe: How to disable warning popup in ActiveX Pin
Cpp_Com20-Sep-11 23:38
Cpp_Com20-Sep-11 23:38 
AnswerRe: How to disable warning popup in ActiveX Pin
Abhi Lahare3-Oct-11 6:24
Abhi Lahare3-Oct-11 6:24 
QuestionCan't call DestroyWindow in CView::OnActivateView when activated with Aero preview Pin
Member 823191212-Sep-11 15:33
Member 823191212-Sep-11 15:33 
AnswerRe: Can't call DestroyWindow in CView::OnActivateView when activated with Aero preview Pin
Member 823191214-Sep-11 3:22
Member 823191214-Sep-11 3:22 
GeneralRe: Can't call DestroyWindow in CView::OnActivateView when activated with Aero preview Pin
MicroVirus14-Sep-11 3:32
MicroVirus14-Sep-11 3:32 
QuestionHow to create a ActiveX document server to render a txt file Pin
shelok10-Sep-11 17:17
shelok10-Sep-11 17:17 
AnswerRe: How to create a ActiveX document server to render a txt file Pin
Richard MacCutchan10-Sep-11 21:09
mveRichard MacCutchan10-Sep-11 21:09 
GeneralRe: How to create a ActiveX document server to render a txt file Pin
shelok10-Sep-11 23:19
shelok10-Sep-11 23:19 
QuestionHow to Check the iterator is valid? Pin
jbiaojerry7-Sep-11 23:45
jbiaojerry7-Sep-11 23:45 
AnswerRe: How to Check the iterator is valid? Pin
MicroVirus8-Sep-11 4:07
MicroVirus8-Sep-11 4:07 
AnswerRe: How to Check the iterator is valid? Pin
Stephen Hewitt12-Sep-11 6:18
Stephen Hewitt12-Sep-11 6:18 
GeneralRe: How to Check the iterator is valid? Pin
jbiaojerry18-Sep-11 14:00
jbiaojerry18-Sep-11 14:00 
GeneralRe: How to Check the iterator is valid? Pin
darrendavis30-Sep-11 7:15
darrendavis30-Sep-11 7:15 
QuestionStreambuf problems Pin
Cold_Fearing_Bird6-Sep-11 20:33
Cold_Fearing_Bird6-Sep-11 20:33 
AnswerRe: Streambuf problems [modified] Pin
Orjan Westin6-Sep-11 23:24
professionalOrjan Westin6-Sep-11 23:24 
QuestionHow to use the hook function of Windows FileOpen dialog Pin
clever1015-Sep-11 21:13
clever1015-Sep-11 21:13 
AnswerRe: How to use the hook function of Windows FileOpen dialog Pin
MicroVirus6-Sep-11 1:35
MicroVirus6-Sep-11 1:35 
GeneralRe: How to use the hook function of Windows FileOpen dialog Pin
clever10110-Sep-11 1:07
clever10110-Sep-11 1:07 
QuestionMemory leak problem. Pin
sirtimid3-Sep-11 8:39
sirtimid3-Sep-11 8:39 
Hi all.

I have a memory leak on a C++ MFC app I'm trying to solve.
In the problematc part of code there are some function calls as follows:
void functionA()
{
functionX(new ClassConstructor());
}
Since this unmanaged code, is it safe to do that without freeing the memory allocated by the new operator, or it will be released after exiting the functionA scope?
Shouldn't be something like the following a good solution?
void functionA()
{
ClassConstructor *obj = new ClassContructor();
functionX(obj);
delete obj;
}

Thanks in advance Smile | :)

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.