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

C / C++ / MFC

 
GeneralRe: Virtual function problem! Pin
S. Senthil Kumar10-May-05 1:10
S. Senthil Kumar10-May-05 1:10 
GeneralRe: Virtual function problem! Pin
Bob Stanneveld10-May-05 1:14
Bob Stanneveld10-May-05 1:14 
GeneralRe: Virtual function problem! Pin
S. Senthil Kumar10-May-05 1:19
S. Senthil Kumar10-May-05 1:19 
GeneralRe: Virtual function problem! Pin
Bob Stanneveld10-May-05 1:51
Bob Stanneveld10-May-05 1:51 
GeneralRe: Virtual function problem! Pin
S. Senthil Kumar10-May-05 2:05
S. Senthil Kumar10-May-05 2:05 
GeneralRe: Virtual function problem! Pin
Bob Stanneveld10-May-05 2:15
Bob Stanneveld10-May-05 2:15 
GeneralRe: Virtual function problem! Pin
S. Senthil Kumar10-May-05 2:20
S. Senthil Kumar10-May-05 2:20 
GeneralRe: Virtual function problem! Pin
Bob Stanneveld10-May-05 3:07
Bob Stanneveld10-May-05 3:07 
As you can see in my code example, the destructor is alreay virtual. As you explained in your previous post, the function of the derived class won't be called, since the derived part is destroyed already...

[EDIT]
I already solved the problem, by putting the cleanup in a special cleanup routine, that the user has to call from the derived class's destructor. I would have loved a more nice solution, but I guess that's not going to happen..
[/EDIT]



I also got the blogging virus..[^]
Generalwhat's the use of adding __declspec(uuid(".....")) in a struct Pin
HeartFriend10-May-05 0:08
HeartFriend10-May-05 0:08 
GeneralRe: what's the use of adding __declspec(uuid(".....")) in a struct Pin
ThatsAlok10-May-05 1:06
ThatsAlok10-May-05 1:06 
GeneralRe: what's the use of adding __declspec(uuid(".....")) in a struct Pin
HeartFriend10-May-05 15:35
HeartFriend10-May-05 15:35 
GeneralRe: what's the use of adding __declspec(uuid(".....")) in a struct Pin
ThatsAlok10-May-05 22:41
ThatsAlok10-May-05 22:41 
GeneralC code for a GUI Pin
guillaume.dauphin9-May-05 23:32
guillaume.dauphin9-May-05 23:32 
GeneralRe: C code for a GUI Pin
David Crow10-May-05 2:27
David Crow10-May-05 2:27 
GeneralRe: C code for a GUI Pin
guillaume.dauphin10-May-05 3:59
guillaume.dauphin10-May-05 3:59 
GeneralRe: C code for a GUI Pin
David Crow10-May-05 4:43
David Crow10-May-05 4:43 
GeneralRe: C code for a GUI Pin
guillaume.dauphin10-May-05 5:16
guillaume.dauphin10-May-05 5:16 
GeneralRe: C code for a GUI Pin
David Crow10-May-05 5:20
David Crow10-May-05 5:20 
GeneralRe: C code for a GUI Pin
guillaume.dauphin10-May-05 5:37
guillaume.dauphin10-May-05 5:37 
GeneralRe: C code for a GUI Pin
David Crow10-May-05 5:41
David Crow10-May-05 5:41 
GeneralRe: C code for a GUI Pin
guillaume.dauphin10-May-05 6:06
guillaume.dauphin10-May-05 6:06 
GeneralRe: C code for a GUI Pin
David Crow10-May-05 6:32
David Crow10-May-05 6:32 
Generalhelp me Pin
wwhh3939-May-05 23:13
wwhh3939-May-05 23:13 
GeneralRe: help me Pin
khan++10-May-05 2:12
khan++10-May-05 2:12 
GeneralRe: help me Pin
wwhh39310-May-05 14:28
wwhh39310-May-05 14:28 

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.