Click here to Skip to main content
15,887,214 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Question about how to kill thread that i create with _beginthreadex ? Pin
Maxwell Chen10-Mar-08 20:40
Maxwell Chen10-Mar-08 20:40 
AnswerRe: Question about how to kill thread that i create with _beginthreadex ? Pin
Peter Weyzen10-Mar-08 20:41
Peter Weyzen10-Mar-08 20:41 
GeneralRe: Question about how to kill thread that i create with _beginthreadex ? [modified] Pin
Yanshof10-Mar-08 21:15
Yanshof10-Mar-08 21:15 
GeneralRe: Question about how to kill thread that i create with _beginthreadex ? Pin
Cedric Moonen10-Mar-08 21:33
Cedric Moonen10-Mar-08 21:33 
GeneralRe: Question about how to kill thread that i create with _beginthreadex ? Pin
Yanshof10-Mar-08 21:39
Yanshof10-Mar-08 21:39 
GeneralRe: Question about how to kill thread that i create with _beginthreadex ? Pin
Peter Weyzen10-Mar-08 21:54
Peter Weyzen10-Mar-08 21:54 
QuestionHow virtual destructor works under the hood? Pin
abhijitr10-Mar-08 19:41
abhijitr10-Mar-08 19:41 
AnswerRe: How virtual destructor works under the hood? Pin
Peter Weyzen10-Mar-08 19:47
Peter Weyzen10-Mar-08 19:47 
I think:

The destructor goes into the vtable.

When the destructor is called -- the top-most constructor is called first, executed, then in turn, the each of the parent destructors are called. The order is the opposite of the order that the constructors are executed.

If you didn't do a virtual destructor, the parent destructors are hidden. I, personally, always use virtual destructors.

Just off the top of my head.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />
Peter Weyzen<br />
Staff Engineer<br />
<a href="http://www.soonr.com">SoonR Inc -- PC Power delivered to your phone</a>

GeneralRe: How virtual destructor works under the hood? Pin
Rajkumar R10-Mar-08 23:53
Rajkumar R10-Mar-08 23:53 
GeneralRe: How virtual destructor works under the hood? Pin
Peter Weyzen11-Mar-08 7:46
Peter Weyzen11-Mar-08 7:46 
GeneralRe: How virtual destructor works under the hood? Pin
Rajkumar R11-Mar-08 8:27
Rajkumar R11-Mar-08 8:27 
GeneralRe: How virtual destructor works under the hood? Pin
Peter Weyzen11-Mar-08 8:49
Peter Weyzen11-Mar-08 8:49 
AnswerRe: How virtual destructor works under the hood? Pin
Maxwell Chen10-Mar-08 20:36
Maxwell Chen10-Mar-08 20:36 
GeneralMissing Start Point Pin
Member 461894910-Mar-08 18:29
Member 461894910-Mar-08 18:29 
QuestionRe: Missing Start Point Pin
Maxwell Chen10-Mar-08 19:08
Maxwell Chen10-Mar-08 19:08 
GeneralRe: Missing Start Point Pin
Sameerkumar Namdeo10-Mar-08 22:27
Sameerkumar Namdeo10-Mar-08 22:27 
GeneralWorker thread-&gt;crash Pin
lavate malllik10-Mar-08 17:39
lavate malllik10-Mar-08 17:39 
GeneralRe: Worker thread-&gt;crash Pin
Stephen Hewitt10-Mar-08 18:00
Stephen Hewitt10-Mar-08 18:00 
GeneralRe: Worker thread-&gt;crash Pin
Peter Weyzen10-Mar-08 19:49
Peter Weyzen10-Mar-08 19:49 
GeneralRe: Worker thread-&gt;crash Pin
ThatsAlok10-Mar-08 20:36
ThatsAlok10-Mar-08 20:36 
QuestionRe: Worker thread-&gt;crash Pin
Maxwell Chen10-Mar-08 20:45
Maxwell Chen10-Mar-08 20:45 
GeneralRe: Worker thread-&gt;crash Pin
CPallini10-Mar-08 22:39
mveCPallini10-Mar-08 22:39 
GeneralRe: Worker thread-&gt;crash Pin
kanduripavan11-Mar-08 16:57
kanduripavan11-Mar-08 16:57 
Generalprogram to convert roman number to its decimal equvalent Pin
Dhiraj kumar Saini10-Mar-08 17:05
Dhiraj kumar Saini10-Mar-08 17:05 
GeneralRe: program to convert roman number to its decimal equvalent Pin
Stephen Hewitt10-Mar-08 18:02
Stephen Hewitt10-Mar-08 18:02 

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.