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!

FoxPro 9 application generator not working

Status
Not open for further replies.

TonyScarpelli

Programmer
Jan 23, 2003
361
US
I was going through the Walkthrough: Creating Applications with Visual FoxPro.

When I got to the build part and built the myapplication.app and tried to run it I get two error messages:

File 'e:\myApp\myapplication_app.vcx' does not exist

and

File not found, or unavailable. It may be in use.: _app

I have tried creating another application the same way and got the same messages.

Is there a problem with FoxPro's application generator?

Thanks



Tony Scarpelli
Clinical Engineering Dept.
Maine Medical Center
Portland, Maine 04102
 
Hi Tony,

This could be a pathing issue. Check to see if myapplication_app.vcx exists in any other directory. If it does, make sure that directory is on your search path at the time you run the build.

Mike


__________________________________
Mike Lewis (Edinburgh, Scotland)

My Visual FoxPro site: www.ml-consult.co.uk
 
I added the /libs directory path to the search path and it found the class.

My question is, shouldn't the application generator have taken care of things like this?

Or, at least, the instructions in the walkthrough should have.

Oh, well, on to the next bug.

Thanks.

CU


Tony Scarpelli
Clinical Engineering Dept.
Maine Medical Center
Portland, Maine 04102
 
The app generator and the foundation classes tend to be a little fragile and HIGHLY opinionated about your current working directory. If you inadvertently changed it, the relative paths stored inside the classes are no longer accurate.

Unfortunately, they assume you know the product well enough to recognize these symptoms, but I'm not sure I could do any better.
 
Tony,

shouldn't the application generator have taken care of things like this?

Maybe, but I wouldn't have counted on it. The application generator is OK for building a very basic app, which you can than further develop by other means. But it's not the most polished of tools, and doesn't seem to be widely used, as far as I can judge.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

My Visual FoxPro site: www.ml-consult.co.uk
 
I have yet, in all my time as a programmer, found an application generator that works. Some come close, even the ones that cost $700, but every time you generate a project there is always tweaks to be made, and you could never understand it. Very frustrating.

Of course I can go back and do the things I always did, make a directory, grab a Main.prg from another project, grab some forms, create a few data tables, and go on from there. KISS.

Thanks, guys.

CU


Tony Scarpelli
Clinical Engineering Dept.
Maine Medical Center
Portland, Maine 04102
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top