Click here to Skip to main content
16,007,760 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: MDI Window List Pin
Tomasz Sowinski11-Jun-01 8:38
Tomasz Sowinski11-Jun-01 8:38 
GeneralRe: MDI Window List Pin
2sky11-Jun-01 8:45
2sky11-Jun-01 8:45 
GeneralRe: MDI Window List Pin
Tomasz Sowinski11-Jun-01 9:04
Tomasz Sowinski11-Jun-01 9:04 
GeneralRe: MDI Window List Pin
2sky11-Jun-01 9:13
2sky11-Jun-01 9:13 
GeneralRe: deleteing window menu Pin
Shashikant_200622-Dec-08 1:15
Shashikant_200622-Dec-08 1:15 
GeneralCTreeCtrl Brounding Rectangle Pin
jerry0davis11-Jun-01 6:04
jerry0davis11-Jun-01 6:04 
GeneralRe: CTreeCtrl Brounding Rectangle Pin
Tomasz Sowinski11-Jun-01 6:20
Tomasz Sowinski11-Jun-01 6:20 
GeneralConstructor/Destructor in MFC Extention dll's Pin
D.D. de Kerf11-Jun-01 5:47
D.D. de Kerf11-Jun-01 5:47 
OK, so I made myself an MFC Extention dll (this time I used MFC as shared library and all, everything looks ok), but I've still got some problems here...

I want to export a couple of classes from my extention DLL and things go wrong in de destructors.... For example, I tried the following code:

// --- This one goes OK ---
// CMyObject has a couple of members: strings, pointers and numbers
CMyObject * pNew = new CMyObject();
delete pNew;

// --- This one stinks ----
// CMyComplexObject has a couple of protected members, which are pointers to CMyObject instances
// CMyComplexObject creates the instances of the members in the constructor with 'new' and deletes them in
// the destructor with 'delete'.
CMyComplexObject * pNew = new CMyComplexObject(); // This goes correctly
delete pNew; // Application crashes on the delete of it's own members (the ones it made with 'new' in the constructor)!

Confused | :confused: Confused | :confused: Confused | :confused:

Structured programming vs. chaotic mind boggling
GeneralRe: Constructor/Destructor in MFC Extention dll's Pin
Tomasz Sowinski11-Jun-01 5:55
Tomasz Sowinski11-Jun-01 5:55 
GeneralRe: Constructor/Destructor in MFC Extention dll's Pin
D.D. de Kerf11-Jun-01 22:19
D.D. de Kerf11-Jun-01 22:19 
Generalstl Pin
11-Jun-01 5:28
suss11-Jun-01 5:28 
GeneralRe: stl Pin
11-Jun-01 5:33
suss11-Jun-01 5:33 
GeneralRe: stl Pin
11-Jun-01 5:35
suss11-Jun-01 5:35 
GeneralRe: stl Pin
Michael P Butler11-Jun-01 5:35
Michael P Butler11-Jun-01 5:35 
GeneralRe: stl Pin
11-Jun-01 5:53
suss11-Jun-01 5:53 
GeneralRe: stl Pin
Igor Sukhov11-Jun-01 6:50
Igor Sukhov11-Jun-01 6:50 
GeneralRe: stl Pin
Igor Sukhov11-Jun-01 5:35
Igor Sukhov11-Jun-01 5:35 
GeneralRe: stl Pin
Mukkie11-Jun-01 7:28
Mukkie11-Jun-01 7:28 
GeneralRe: stl Pin
11-Jun-01 23:45
suss11-Jun-01 23:45 
GeneralRe: stl Pin
Jeremy Pullicino12-Jun-01 2:19
Jeremy Pullicino12-Jun-01 2:19 
GeneralRe: stl Pin
Jeremy Pullicino12-Jun-01 2:22
Jeremy Pullicino12-Jun-01 2:22 
GeneralRe: stl Pin
markkuk12-Jun-01 21:05
markkuk12-Jun-01 21:05 
GeneralReset EOF Pin
11-Jun-01 3:46
suss11-Jun-01 3:46 
GeneralRe: Reset EOF Pin
Igor Sukhov11-Jun-01 5:30
Igor Sukhov11-Jun-01 5:30 
GeneralRe: Reset EOF Pin
12-Jun-01 2:49
suss12-Jun-01 2:49 

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.