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

VFP 7 EXE file not run in Win 2000

Status
Not open for further replies.

wanderaround

Programmer
Jun 11, 2002
20
HK
I have installed VFP 7 under Win 2000, also I have upgrade the patch file for VFP. I have write a main program as follows:

SET EXCLUSIVE ON
SET MULTILOCKS ON
SET CARRY OFF
SET NEAR OFF
SET EXACT ON
DO FORM ati
READ EVENTS

The form ATI include two buttons. One for reading a text file and modified it. The other is EXIT button.

It work fine inside VFP. After I build the EXE and run in window desktop, nothing appear on screen but the program is running when I check in task manager.

Please help.

Wanderaround.
 
1) Do you set Screen off anywhere? Either in the CONFIG.FPW or in code?
2) Is the Form marked Top-Level?

Rick
 
Thanks for your fast response.
I checked the CONFIG.FPW and find a line screen = off
Should I remove this line from config.fpw?
 
Rgbean, Thank you very much. The problem have been solved by removing that line. Please let me know if I have to change it for every new project? The line is generate the VFP automatically. Any way to set it once only?
 
As you might guess there are reasons to use SCREEN=OFF in a CONFIG.FPW, so you'll normally want to use a different CONFIG.FPW file for at least each type of project if not each one. This is not automatically generated - someone did it on purpose. One reason is when the main form is Top-level and they don't want the VFP Screen to show, It can also be useful if you want your application to show a "Splash" screen before your main form comes up - then you'd have _SCREEN.Visible = .T. in your main program.

Rick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top