CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    May 1999
    Posts
    216

    Problem in Threads

    Hi I created a thread which spawns a application. the spawn is no wait, and i want to get when the thread is quit. I dont want to use a loop to check the status(for STILL_ACTIVE). is there a way to check the thread is ended?
    It is urgent , can anybosy help me?



  2. #2
    Join Date
    May 1999
    Location
    Sydney, Australia
    Posts
    420

    Re: Problem in Threads

    Use ShellExecuteEx()

    wait for the process' handle in a thread and that's all

    Sally


  3. #3
    Guest

    Re: Problem in Threads

    use WaitForSingleObject(threadHandle, ...)


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured