Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Program Flow, dialog problem
Xcdcc
post 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!
Go to the top of the page
 
+Quote Post
osknockout
post 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?
Go to the top of the page
 
+Quote Post
switch
post 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 tongue.gif

good luck!
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Software Installation(5)
  2. Stop A Program Excecution(4)
  3. Timeouting Program(2)
  4. Crazy Looking C Program(19)
  5. C++(15)
  6. Opengl And Mfc Dialog Based Application(7)
  7. Run A Program From Another One(4)
  8. Program From Mekka 97 4k(2)
  9. Need Debugging Help For A Simple Program(3)
  10. Need Help With C Program To Test If A Number Is Prime(12)
  11. Win32: Dialog Box And Accelerator(1)
  12. Executing An Exe From Within A Program!(7)
  13. My First C++ Program(6)
  14. Source Code For Paint Like Program Under Dos In C(2)
  15. Program Lang I Know(2)
  1. Centering The Text In A Simple C++ Program?(8)
  2. Buffer Overflow In Action Tutorial(0)
  3. C Or C++ Easy Programming Generator(6)
  4. A C++ Program Print Hello With Nothing Written In Main() Method(2)
  5. A Crazy Program In C(13)
  6. How To Run A Process Through Your Program (c#)(0)
  7. Any Program Ideas?!(5)
  8. If/else Demo Program Bug(4)


 



- Lo-Fi Version Time is now: 5th September 2008 - 09:15 AM