Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to start another process?

Status
Not open for further replies.

JaneJantz

Programmer
Sep 13, 2000
55
US
I have an application running in VFP. I want to start another whole process from within my application that runs independently until I shut that down. I don't want to end that process when I end the first process. Can I do this?
 
JaneJantz

If you tell us more about the second application, a WinAPI call may be a better alternative.

Chris :)
 
Thanks for your help... I have a large vfp exe that is a large call center.... tracks multiple tables, keeps a client list, etc. Then I have a small vfp exe that does nothing more than monitor one of the tables as it changes on a timer. I would like to run the large exe, and then if they want to run the other (probably minimized on the task bar) it would not interfere with the large one. Once they open the small one, it should be its own process. Tried a run monitor.exe but it just flashes and returns processing to the large exe. The screen in monitor.exe (the small exe) is modal and I have a read events in the main program. I can't seem to get it to perform the way I want.
 
JaneJanz

Could you not dispense with the second .exe and monitor the table from within the main application?

Perhaps the pseudo application could be called from the menu or a toolbar?

If you have been down this route - apologies.

Chris :)
 
Thanks for your response. The reason I want to do this as another process is that I want to minimize it on the task bar and only see the main screen caption. Right now I am running them as two separate modules, but I would like to start one from the other. I know this seems weird, but it looks good like this and I would like to have only one icon on the desktop.
 
JaneJanz

Why not run the second pseudo application in a minimized top level form called from your main.scx?

In the .Init event of main DO FORM monitor, (minimised), and in the .Init event of monitor ACTI WIND main, passing control back to main.

A click on the taskbar will effectively run the pseudo application.

Chris
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top