Thread: Application::DoEvents()

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Aug 2011
    Posts
    116

    Question Application::DoEvents()

    I have a piece of code that have Application:: DoEvents() and I have read on MSDN, but there's something that I still don't understand.
    for example, here is my pseudocode:
    Code:
    void functionA()
    {
       while(true)
      {
           //command A;
          //command B;
          Application::DoEvents();
      }
    }
    void Button_Click( System::Object^ sender, System::EventArgs^ e )
    {
         //do something
    }
    So, when program run to command A or command B, if I click -->nothing.
    when run to Application:oEvents(): if I click. Program will excute event Button Click. If I don't, program will loop again.

    Does my explanation about Application:: DoEvents() true.

    Please explain for me,please.
    thanks
    Last edited by hqt; 01-22-2012 at 08:17 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Application::DoEvents() GridView
    By franse in forum C++ Programming
    Replies: 1
    Last Post: 10-24-2008, 03:30 AM
  2. Convirt my C program to a GUI application/Web Application
    By kapil1089thekin in forum C Programming
    Replies: 6
    Last Post: 07-21-2008, 01:43 AM
  3. DoEvents again...
    By fou in forum Windows Programming
    Replies: 3
    Last Post: 01-23-2003, 07:00 PM
  4. Statement similar to VB's "DoEvents"
    By XenoCodex Admin in forum C++ Programming
    Replies: 5
    Last Post: 07-26-2002, 06:29 AM