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

Distributing EXE and APP

Status
Not open for further replies.

jesylv

MIS
Jul 1, 2001
135
I have a small stub program (EXE) that runs on workstations and checks if newer versions of APP files are available on a commun network directory. If it is the case, the stub program copies the newer versions on the workstation and launches the main App file with:

DO MainApp.App

This App sets up the Main Menu and the Read Events.
When I run this App on a WorkStation via my stub program I get Messages saying that MyForm.scx or Myclass.vcx are missing. Theses files are included in the project so they are in fact in the APP. (When run this app from VFP everything works fine)

Anyone have any ideas on this one?

Jean
 
Do you have a SET PATH command in your main program?
Even though the form and the class library are compiled in the application, you still have to tell the application where to look for it.
SET DEFAULT TO SYS(5)+"\MYAPP"
SET PATH DATA;FORMS;MENUS;LIBS

 
Hi mGagnon,

My paths are correctly set. In fact, if I compile my Application as an EXE, it works fine. I just can get it to work with an APP file. Frustrating experience indeed....

Jean
 
jesylv

I have found that even though the forms and reports are compiled in the exe (or app) VFP looks first in the directory the form is suppose to be then it looks within the exe for the form, but if it cannot find the directory (even though it might be empty ) it will throw an error and stop there. My suggestion is to re-create the environment. If in the development you had a forms directory (and all others you used), create an empty on the client's machine, see if it resolves the issue.
 
I have made many fox exe's, from 2.6 to foxpro 6. I have never hade to reference any object, file or table that was included in the exe.

what I suggest is to make sure that you are in the directory that the app was launched from. If you are running the app from the main that is in another folder...

like do folder\myapp.app

make sure that when the app starts, that you cd directory from where the app resides. Attitude is Everything
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top