Click here to Skip to main content
15,893,487 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to add items to CListCtrl faster? Pin
Hans Dietrich4-Feb-11 11:24
mentorHans Dietrich4-Feb-11 11:24 
GeneralRe: How to add items to CListCtrl faster? Pin
Chris Meech4-Feb-11 12:16
Chris Meech4-Feb-11 12:16 
GeneralRe: How to add items to CListCtrl faster? Pin
includeh104-Feb-11 13:57
includeh104-Feb-11 13:57 
GeneralRe: How to add items to CListCtrl faster? Pin
Hans Dietrich4-Feb-11 14:25
mentorHans Dietrich4-Feb-11 14:25 
AnswerRe: How to add items to CListCtrl faster? Pin
User 74293384-Feb-11 11:56
professionalUser 74293384-Feb-11 11:56 
AnswerRe: How to add items to CListCtrl faster? Pin
Andrew Brock4-Feb-11 15:09
Andrew Brock4-Feb-11 15:09 
QuestionHow to Run a thread after the process exit Pin
pandit844-Feb-11 2:10
pandit844-Feb-11 2:10 
AnswerRe: How to Run a thread after the process exit Pin
Rajesh R Subramanian4-Feb-11 2:57
professionalRajesh R Subramanian4-Feb-11 2:57 
pandit84 wrote:
If a process creats a threads and then detaches that thread.

I have no idea what this means.

pandit84 wrote:
Now If I kill my process then in this case will my thread run upto its completion ?

If it is a native application, then every other thread created within the application will be killed abruptly when the main thread comes to a halt. If you want a graceful exit, you need to take care of that yourself.

For example:
UINT AdditionalThread(LPVOID p)
{
 // do stuff (assume that this takes 10 seconds)
 return 0;
}

int main()
{
  _beginthread(AdditionalThread, 0, 0);
  //do stuff (assume this takes 3 seconds)
  //write code to wait for AdditionalThread to complete, or it will be killed
  return 0;
}

"Real men drive manual transmission" - Rajesh.

GeneralRe: How to Run a thread after the process exit Pin
Stephen Hewitt4-Feb-11 3:21
Stephen Hewitt4-Feb-11 3:21 
GeneralRe: How to Run a thread after the process exit Pin
Hans Dietrich4-Feb-11 3:47
mentorHans Dietrich4-Feb-11 3:47 
GeneralRe: How to Run a thread after the process exit Pin
Yusuf4-Feb-11 5:41
Yusuf4-Feb-11 5:41 
AnswerRe: How to Run a thread after the process exit Pin
Stephen Hewitt4-Feb-11 3:23
Stephen Hewitt4-Feb-11 3:23 
AnswerRe: How to Run a thread after the process exit Pin
«_Superman_»4-Feb-11 4:29
professional«_Superman_»4-Feb-11 4:29 
QuestionUpper Bound and Lower Bound of an array [SOLVED] Pin
goldenrose94-Feb-11 0:08
goldenrose94-Feb-11 0:08 
AnswerRe: Upper Bound and Lower Bound of an array Pin
Cool_Dev4-Feb-11 0:34
Cool_Dev4-Feb-11 0:34 
GeneralRe: Upper Bound and Lower Bound of an array Pin
Richard MacCutchan4-Feb-11 0:59
mveRichard MacCutchan4-Feb-11 0:59 
GeneralRe: Upper Bound and Lower Bound of an array Pin
Cool_Dev4-Feb-11 1:18
Cool_Dev4-Feb-11 1:18 
GeneralRe: Upper Bound and Lower Bound of an array Pin
Richard MacCutchan4-Feb-11 1:28
mveRichard MacCutchan4-Feb-11 1:28 
GeneralRe: Upper Bound and Lower Bound of an array Pin
goldenrose94-Feb-11 1:52
goldenrose94-Feb-11 1:52 
GeneralRe: Upper Bound and Lower Bound of an array Pin
Cool_Dev4-Feb-11 1:56
Cool_Dev4-Feb-11 1:56 
GeneralRe: Upper Bound and Lower Bound of an array Pin
goldenrose94-Feb-11 2:35
goldenrose94-Feb-11 2:35 
GeneralRe: Upper Bound and Lower Bound of an array Pin
Stefan_Lang4-Feb-11 2:31
Stefan_Lang4-Feb-11 2:31 
GeneralRe: Upper Bound and Lower Bound of an array Pin
Niklas L4-Feb-11 8:05
Niklas L4-Feb-11 8:05 
GeneralRe: Upper Bound and Lower Bound of an array Pin
David Crow5-Feb-11 5:09
David Crow5-Feb-11 5:09 
AnswerRe: Upper Bound and Lower Bound of an array Pin
Andrew Brock4-Feb-11 1:52
Andrew Brock4-Feb-11 1:52 

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.