Creating an exe from the Project Builder  
Author Message
albewar





PostPosted: Visual FoxPro General, Creating an exe from the Project Builder Top

Hello,

I have finished my firs application and I have troubles with generating an exe to be installed in the customer’s PC.

I’ve accomplished all the requirements seemingly for example to copy the dll that indicates the help of VFP, in same the directory where the application is executed, and to start up from an initial program that after calling to the form from this program, I`ve addedd the sentence of READ EVENTS at the end,

I execute It and can’t see anything. The exe run like a process in memory (I do check it with the task Administrator of Windows XP).
If I have an open sesion of VFP, it works, but if I close it, It does not (AND the client doesn't have installed VFP)

Thank you for your support

Regards,

Alberto




Visual FoxPro2  
 
 
albewar





PostPosted: Visual FoxPro General, Creating an exe from the Project Builder Top

Sorry, I’ve made a mistake: I mean Build an .exe from the VFP Project Manager.

TKS. Alberto



 
 
Tamar E. Granor





PostPosted: Visual FoxPro General, Creating an exe from the Project Builder Top

What happens when you run your EXE from the VFP Command Window Does it work there

Tamar

 
 
albewar





PostPosted: Visual FoxPro General, Creating an exe from the Project Builder Top

Thanks Tamar,

It works perfectly :-)

Alberto



 
 
Alex Feldstein





PostPosted: Visual FoxPro General, Creating an exe from the Project Builder Top

In short:

Create a program to set your environment and instantiate your mainmenu and/or form.

* Main.prg

SET EXCLUSIVE OFF
SET MULTILOCKS ON
* etc
DO MENU MiMenu
DO FORM MiForm
READ EVENTS
* here you putcleaning code

QUIT


In the Exit menu option or button do a CLEAR EVENTS. Thids takes you out of the main event and back to Main.prg to clean up and close.

Also see:ON SHUTDOWN

Note: I see you are from Buenos Aires. If you prefer help in Spanish you have choices:

HTTP: http://www.universalthread.com (free registration - set VFP in Spanish section)

NNTP: microsoft.public.es.vfoxpro

and of course you can always ask here in English. :)


 
 
CetinBasoz





PostPosted: Visual FoxPro General, Creating an exe from the Project Builder Top

Alberto,

Do you have a config.fpw file with:

screen = off

in it or

_screen.visible = .f.

somewhere in your startup code

If so you won't see anything until a toplevel form's show is called. ie:

* main.prg

messagebox("Hello") && would not show up

* or:

use myTable && myTable is not in search path and VFP asking for a file - dialog would not show up

You might test this situation placing:

_screen.visible = .t.

as the first line of your application's main.prg (and commenting out any _screen.visible = .f. line if any).

PS: If the problem was it, I suggest not using screen=off until you fully understand how to work w/o VFP main window.


 
 
albewar





PostPosted: Visual FoxPro General, Creating an exe from the Project Builder Top

Hello,

Thank you for your answer.

Yes, I had a config.fpw with a marvellous:

SCREEN = OFF in it.

I don’t know how it came there, maybe when I was testing different configurations and I pasted it in the application path, taken from somewhere in the VFP program folders.

Now the exe run perfect ! :-) :-) :- )

Thanks a lot,

Alberto



 
 
albewar





PostPosted: Visual FoxPro General, Creating an exe from the Project Builder Top

Hello again,

Something is going wrong when I try to exit the aplication from the .exe created by the Project Manager

It quits OK when I run the application while VFP is running, starting from my main.prg, with the READ EVENTS in it and the CLEAR EVENTS in the Exit button.

But when I Exit from the .exe, something like a loop happen and I must finish by a Ctrl + Del from Windows Task Manager.

Tks again fellows.



 
 
Don Higgins





PostPosted: Visual FoxPro General, Creating an exe from the Project Builder Top

Sorry, the crystal ball is broken. You will have to post your code if you want help on this problem. We need to see the code AFTER the main form is called and if there is any other code in the exit button.