|
|
|
|
![]() ![]() |
Apr 5 2005, 09:13 PM
Post
#1
|
|
|
Newbie ![]() Group: Members Posts: 1 Joined: 5-April 05 Member No.: 5,295 |
Hi,
i have a quick question. I have a program that does alot of calculations near its completion. To indicate to the user that it is still working so they dont close it I have a dialog box with a progress bar pop up. when the dialog comes up, the regular execution of the original program stops until I close the dialog, so I was wondering if there is a way to tell the origianl program to keep running while the dialog is open(since the original program would be updating the progress metre). p.s. using MFC(not by choice) Thanks alot! |
|
|
|
Apr 7 2005, 10:18 PM
Post
#2
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 399 Joined: 14-November 04 From: Elysium Member No.: 2,280 |
Well, when you're creating the dialog box, you're shifting the CPU resource to to dialog box. If I were writing it (because I'm lazy) I'd make it create some javascript and run msdos commands... but for practical purposes, could you show these parts of the source Xcdcc?
|
|
|
|
Jun 1 2005, 08:42 AM
Post
#3
|
|
|
Premium Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 178 Joined: 13-October 04 From: NSW, Australia Member No.: 1,713 |
my best guess would be to create the dialog on a seperate thread that can still communicate with the main one. i'm not exactly sure how to do this, however, it would eliminate your problem. then, when your program starts calculating, a window would pop up, maybe with a progress bar or something (they look so cool) and then when it's finished tell the dialog box to close.
hope i've been of SOME help good luck! |
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 5th September 2008 - 09:15 AM |