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

Search:

Type: Posts; User: nnXen

Search: Search took 0.01 seconds.

  1. Replies
    13
    Views
    1,388

    Re: Do other things whilst in a loop

    The solution I've gone for in the end is to intervene the main frame OnClose, and stop the loop in CView before doing the actual close. Seems to work well.

    Definitely going to have to attempt...
  2. Replies
    13
    Views
    1,388

    Re: Do other things whilst in a loop

    Finally, if the user closes the application, how can I terminate the loop before it closes (otherwise it throws errors if the loop is still running.) I understand its the WM_CLOSE message in...
  3. Replies
    13
    Views
    1,388

    Re: Do other things whilst in a loop

    Brilliant! That works great! Thank you very much :)
  4. Replies
    13
    Views
    1,388

    Re: Do other things whilst in a loop

    if(PeekMessage(&msg,0,0,0,PM_REMOVE)) //Check for user input messages (if user is trying to stop playback)
    {
    if(msg.message==WM_QUIT) break;
    DispatchMessage(&msg);
    }


    It reads...
  5. Replies
    13
    Views
    1,388

    Re: Do other things whilst in a loop

    Well the message pumping method works, but it is buggy with UI updating etc. I think I need to start the loop in a thread. I've had a look through various tutorials on AfxBeginThread, but I can't for...
  6. Replies
    13
    Views
    1,388

    Re: Do other things whilst in a loop

    Thanks Guys! That's been a massive help. I'll probably go with the message pumping method for now but threads are certainly something I'll have to look in to for future reference as it seems that's...
  7. Replies
    13
    Views
    1,388

    Do other things whilst in a loop

    Hi, newbie here, still very much learning.

    I'm writing a piece of software in MFC. In one function, I have a while loop using "KeepLooping" as the condition.

    "KeepLooping" is a boolean that is...
Results 1 to 7 of 7


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center