General discussion

Locked

EXE delivery of Foxpro application?

By metiisto ·
I need to create a deliverable EXE of an old FoxBase+ application. I?ve managed to get it working with surprisingly few changes under Visual Foxpro 6.0. But for the life of me I haven?t been able to get a usable EXE file. I can start the application from the command window via the DO command, and it runs ok. But if I attempt to run it as an EXE, it loads into memory and does nothing. No user interface, no error messages, nothing.

I must be not be creating the EXE correctly. I have a project file with the CODE table listing the PRG files in the application. Menu.prg is listed as MAIN. There are no other entries in the project file. If I select build EXE an EXE is created. Suggestions?

This conversation is currently closed to new comments.

5 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

EXE delivery of Foxpro application?

by bill In reply to EXE delivery of Foxpro ap ...

It most likely runs in the development environment because all the resources are available there.

When you run the EXE, if you pull up task manager, is the app running? or not?

If not, I'd look into the startup code to see if there is an earlyexit based on some condition that's being triggered.

Also, when you launch this EXE, are you launching it from the 'Start\run' option, or have you created a shortcut?

Getting these old 'non-windows' apps torun in todays Windows environments can be a little tricky, especially once you're out of the 'development' environment and into the 'run-time' environment.

Collapse -

EXE delivery of Foxpro application?

by metiisto In reply to EXE delivery of Foxpro ap ...

Yes the task manager shows the app as running. I double click the EXE in the app?s folder to start it.

After some more experimenting I've found that I can run the application as a collection of FXP files using vfp6run.

Still can't make an EXE,but it's become an academic exercise. The user owns the source so delivery of FXP files is a practical alternative.

Collapse -

EXE delivery of Foxpro application?

by bill In reply to EXE delivery of Foxpro ap ...

What you've told me, indicates you're getting the run 'environment' (window) for your code from VFP6RUN.

What I mean by this, is, the 'window' you're running in is defined by VFP6RUN.

If you haven't defined a window for your code to run in, you might need to add:

SET DEVICE TO SCREEN

To get all the @ SAY/GET statements to actually appear somewhere.

You might also want to add:

MOVE WINDOW SCREEN TO 0,0
ZOOM WINDOW SCREEN MAX
MODIFY WINDOW SCREEN TITLE 'MyScreen' GROW FLOAT ZOOM

to be sure the window blows up full screen.

I suspect your APP is running, but you can't 'see' it because VFP has no output 'window' to write to.

Let me know how you make out.

-Bill
Try adding something similar to the beginning of your program

Collapse -

EXE delivery of Foxpro application?

by metiisto In reply to EXE delivery of Foxpro ap ...

I already had a window definition in the initialization code, adding

Zoom Window wMain max

did the trick, the resulting EXE works just like it should! Thanks.

Collapse -

EXE delivery of Foxpro application?

by metiisto In reply to EXE delivery of Foxpro ap ...

This question was closed by the author

Back to Web Development Forum
5 total posts (Page 1 of 1)  

Related Discussions

Related Forums