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

Thread: Indicator

  1. #1
    Join Date
    Feb 2001
    Posts
    17

    Indicator

    I'm delveloping an application which will call some .dll to performe engineering calcutions. The calculation will take few minuts to converge. I would like to have something to indicate that the program is runing while the calculation is in processing. I add a form with some messages, a progress bar and a timer control. The program will load this form so the user will see the progress bar runs during the calculation, and unload this form when the calculation is done. The problem is the calculation is in processing, but the progress bar would not run, it just hang in there looks like short of memory. It unloads the form when the calculation is done. Dose anyone knows how should I add this indicator?


  2. #2
    Join Date
    Jul 2000
    Location
    Milano, Italy
    Posts
    7,726

    Re: Indicator

    Do not use a timer. Use a callback function, instead. Sorry, cannot post more about it right now.

    Special thanks to Lothar "the Great" Haensler, Tom Archer, Chris Eastwood, Bruno Paris and all the other wonderful people who made and make Codeguru a great place. Come back soon, you Gurus.
    ...at present time, using mainly Net 4.0, Vs 2010



    Special thanks to Lothar "the Great" Haensler, Chris Eastwood , dr_Michael, ClearCode, Iouri and
    all the other wonderful people who made and make Codeguru a great place.
    Come back soon, you Gurus.

  3. #3
    Join Date
    Jul 2000
    Location
    Milano, Italy
    Posts
    7,726

    Re: withevents

    you may want to create your dll withevents. the event you add may be triggered inside your calculations to pass a value (integer, maybe) to use with progress bar

    Special thanks to Lothar "the Great" Haensler, Tom Archer, Chris Eastwood, Bruno Paris and all the other wonderful people who made and make Codeguru a great place. Come back soon, you Gurus.
    ...at present time, using mainly Net 4.0, Vs 2010



    Special thanks to Lothar "the Great" Haensler, Chris Eastwood , dr_Michael, ClearCode, Iouri and
    all the other wonderful people who made and make Codeguru a great place.
    Come back soon, you Gurus.

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