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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Restoring windows of multiple-instance EXE's

Status
Not open for further replies.

jpm3

IS-IT--Management
Apr 28, 2003
17
US
I built an EXE that scans a portion of a large database based on start/stop points entered by the user. So you can run one EXE to scan A - M and another instance of the same EXE to scan N - Z.

I tried setting the form captions to "Scan_A" and "Scan_N" (so they would have different names) before the looping starts, but I can't restore the "N" instance (Right-click minimized window and Restore) - the OS (Win 2000) seems confused about which one to bring up. The CPU hits 50% when both are running, and there are "DoEvents" statements in the Form's code to respond to user events (this works ok once the window is restored).

Is this a handle problem, since the same EXE creates 2 windows? Any work-arounds? Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top