CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6
  1. #1

    second dialog slow respond

    i have developed a program usign dialog based application.in that by clicking a button it will show the second dialog. iam using timer to display values in the parent and second dialog but my second dialog takes lot of time to respond.what shall i do? plese help me.

  2. #2
    Join Date
    Feb 2004
    Location
    Hyderabad(AP(India))
    Posts
    16
    Can u show me ur code?

  3. #3
    Join Date
    May 2000
    Location
    KY, USA
    Posts
    18,652
    Where do you update these values? Within the timer function? Probably you can indeed send some of your code...

  4. #4

    second window response time is slow

    in the main window i have a timer and the second window and using combo box and some buttons. while clicking the buttons in the second window it is responding every slowly. how to make to respond quickly. if VB we use DOevents - like that did i have to include any command like that in vc++. please help me .

  5. #5
    John E is offline Elite Member Power Poster
    Join Date
    Apr 2001
    Location
    Manchester, England
    Posts
    4,835
    It's not possible to answer a question like this definitively unless you post your code but here are a couple of things to look for:-

    Open up Task Manager (before you run your program) and switch to the performance page. Then run your program. Is there a point when your program runs where the CPU usage shoots up to 100%? If so, you've probably got a tight loop that is soaking up processor cycles.
    "A problem well stated is a problem half solved.” - Charles F. Kettering

  6. #6
    Join Date
    May 2000
    Location
    KY, USA
    Posts
    18,652

    Re: second window response time is slow

    Originally posted by minakannan
    in the main window i have a timer and the second window and using combo box and some buttons. while clicking the buttons in the second window it is responding every slowly. how to make to respond quickly. if VB we use DOevents - like that did i have to include any command like that in vc++. please help me .
    Well...what does the second dialog do? Are you doing some longer processing?

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