CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: D_Drmmr

Search: Search took 0.03 seconds.

  1. Replies
    13
    Views
    10,346

    Re: Do other things whilst in a loop

    With C++11 support, you can do something like this (you can use the Boost.Thread library instead if you don't have C++11 support).


    #include <mutex>
    #include <thread>

    class ThreadWrapper
    {...
  2. Replies
    13
    Views
    10,346

    Re: Do other things whilst in a loop

    With MFC it's possible, but it's a fragile solution. The better approach is to run the loop in a thread (caled a worker thread). Then you'll need to synchronize the communication between the GUI...
Results 1 to 2 of 2





Click Here to Expand Forum to Full Width

Featured