Click here to Skip to main content
15,892,643 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: Smart Pointer and STL Container Pin
Greg Yeung3-Jul-06 16:57
Greg Yeung3-Jul-06 16:57 
QuestionWindows application with Infragistics controls [modified] Pin
DeloreanMag30-Jun-06 19:37
DeloreanMag30-Jun-06 19:37 
Questionstd::map issue Pin
f229-Jun-06 20:35
f229-Jun-06 20:35 
AnswerRe: std::map issue [modified] Pin
valikac30-Jun-06 7:03
valikac30-Jun-06 7:03 
GeneralRe: std::map issue (solved) bug in xtree Pin
f230-Jun-06 8:39
f230-Jun-06 8:39 
AnswerRe: std::map issue Pin
Stephen Hewitt1-Jul-06 3:39
Stephen Hewitt1-Jul-06 3:39 
GeneralRe: std::map issue Pin
f21-Jul-06 4:49
f21-Jul-06 4:49 
QuestionA General Window Question Pin
HakunaMatada28-Jun-06 21:25
HakunaMatada28-Jun-06 21:25 
Hello CPians,

I am back with another question. Roll eyes | :rolleyes:

Ok, so I am gonna get straight to the point. I have custom Window which was derived from CFrameWindowImpl. Now the class which handles this Window has a Constructor and a Destructor. All the Window logic is written in this class. When I create a window, I do this.

CFrameWindow myWindow ;<br />
myWindow.Create() ;


which creates the Window. Now, when the application ends, I know for sure that the destructor of CFrameWindow is called. What if I had done this?

CFrameWindow *myWindow ;<br />
myWindow->Create() ;


then I would have to call delete myWindow ; to call the destructor. This is fine with an application. But supposing the window Window1 is created by another window, Window2. When Window1 closes, it informs Window2 that it is being destroyed. This notification is sent during WM_NCDESTROY.

My question when in Window2 do I make the call delete Window2? Confused | :confused: I would have to free the memory.

Any help?




---
Hakuna-Matada
It means no worries for the rest of your days...
It's our problem free, Philosophy
AnswerRe: A General Window Question Pin
Justin Tay28-Jun-06 23:40
Justin Tay28-Jun-06 23:40 
GeneralRe: A General Window Question Pin
HakunaMatada29-Jun-06 0:32
HakunaMatada29-Jun-06 0:32 
QuestionMultithreading Pin
shivditya27-Jun-06 21:51
shivditya27-Jun-06 21:51 
QuestionHow to capture the WM_ONVSCROLL message and then do something in WTL [modified] Pin
wanilyer27-Jun-06 15:02
wanilyer27-Jun-06 15:02 
AnswerRe: How to capture the WM_ONVSCROLL message and then do something in WTL Pin
Justin Tay27-Jun-06 18:18
Justin Tay27-Jun-06 18:18 
GeneralRe: How to capture the WM_ONVSCROLL message and then do something in WTL Pin
wanilyer27-Jun-06 18:49
wanilyer27-Jun-06 18:49 
Questiondata not being inserted/updated Pin
ratish mr27-Jun-06 1:47
ratish mr27-Jun-06 1:47 
AnswerRe: data not being inserted/updated [modified] Pin
Kurt _B27-Jun-06 2:59
Kurt _B27-Jun-06 2:59 
QuestionAtl executable without Interface Pin
ROWALI21-Jun-06 18:29
ROWALI21-Jun-06 18:29 
AnswerRe: Atl executable without Interface Pin
Stephen Hewitt27-Jun-06 2:11
Stephen Hewitt27-Jun-06 2:11 
QuestionLinking external library to ATL Pin
ROWALI19-Jun-06 19:34
ROWALI19-Jun-06 19:34 
AnswerRe: Linking external library to ATL Pin
Milton Karimbekallil20-Jun-06 18:23
Milton Karimbekallil20-Jun-06 18:23 
AnswerRe: Linking external library to ATL Pin
Igor Vigdorchik21-Jun-06 4:20
Igor Vigdorchik21-Jun-06 4:20 
QuestionNeed help to return string value from COM Pin
agarunk19-Jun-06 4:40
agarunk19-Jun-06 4:40 
AnswerRe: Need help to return string value from COM [modified] Pin
Roozbeh6919-Jun-06 9:44
professionalRoozbeh6919-Jun-06 9:44 
GeneralRe: Need help to return string value from COM Pin
agarunk20-Jun-06 0:10
agarunk20-Jun-06 0:10 
GeneralRe: Need help to return string value from COM Pin
Milton Karimbekallil20-Jun-06 2:14
Milton Karimbekallil20-Jun-06 2: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.