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!

Making a EXE of my program

Status
Not open for further replies.

Qwark

Programmer
Sep 26, 2000
59
NL
Sorry wrong title in thread before.

Hello,

I have written my first program in VFP. Now i will make a *.exe file. I have used the next statement: BUILD EXE myapp FROM myproj. And it works, but when i start the exe in my explorer it close automatic at the same time. A have a frmmain (FROM) with a couple of other forms and code files.
Can anyone help me.

Qwark [sig][/sig]
 
Qwark

Have you included READ EVENTS and CLEAR EVENTS?

In your main.prg

* Setup code
*
DO FORM mainform NAME oMAIN LINKED
READ EVENTS
QUIT
* End of program

* In the mainform.Destroy event put:-
CLEAR EVENTS

Chris [sig][/sig]
 
No I am not use them. My main.prg is a normally file with procedures my frmmain form is my main. There begins the program, maybe that's my problem? Can you help me?

Qwark [sig][/sig]
 
Qwark

Do not start your application with frmmain - instead call frmmain from your main.prg as follows:-

* Beginning of main.prg
* Setup code
*
DO FORM frmmain NAME oMAIN LINKED
READ EVENTS
QUIT
* End of program

* In the frmmain.Destroy event put:-
CLEAR EVENTS

Chris [sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top