Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
I'm ready to build my first .EXE
Message
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00128256
Message ID:
00128259
Views:
25
>I'm at the point in a current project where I need to build a .EXE and distribute the app to a couple of user's computers. The app isn't fully completed, but it does have a majority of the functionality needed. I've been developing this app using the same path as the users will (using "live" data) - it's already on the server.
>
> I've compiled the .EXE, but I get a number of errors when trying to run it (mostly errors saying it can't find various .dbf files). What else do I need to do to make this work correctly on their systems? I'm thinking I need to add maybe a call to DO STARTCB in MAIN. Do I also need to CD into the correct directory? Normally in my developement environment I do a cd M:\APPS\MANAGE, then a DO STARTCB, then DO MAIN.
>
>Thanks,

Basically, you shouldn't use any hard-coded paths in your code. To provide thet your system will find needed data files you just should reset Form.DataEnvironment.Cursor.Database properties in DE.BeforeOpenTables event.
Edward Pikman
Independent Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform