Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Compiled EXE still looks for menu and procedure files th
Message
From
21/08/2002 17:51:51
 
 
To
21/08/2002 17:41:05
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00692181
Message ID:
00692250
Views:
24
Right. More code here: This is the entire program leading up to the instantiation of the application object. Below this in the code are some procedures like the CleanUp and ErrorHandler etc. It was largely pre-generated by the VFP application wizard when I started the project (about 5 years ago, whew!).
LOCAL lcMainClassLib
LOCAL lcLastSetTalk,lcLastSetPath,lcLastSetClassLib,lcOnShutdown

*!*	*-- Save and configure environment.
lcLastSetTalk=SET("TALK")
	SET TALK OFF
	SET BELL OFF
lcLastSetPath=SET("PATH")
	SET PATH TO L:\DATABASE;L:\PROGS;menus;progs
set procedure to procs.prg
*USE L:\SHARED\WARNING IN 0 SHARED NOUPDATE
PUSH MENU _msysmenu
lcLastSetClassLib=SET("CLASSLIB")
	lcMainClassLib="libs\icgtest"
	SET CLASSLIB TO (lcMainClassLib) ADDITIVE
	lcOnShutdown="ShutDown()"
    ON SHUTDOWN &lcOnShutdown
ON ERROR ErrorHandler(ERROR(),PROGRAM(),LINENO())
	_shell="DO Cleanup IN progs\icgreal"

*-- Instantiate application object.
RELEASE goApp
PUBLIC goApp
goApp=CREATEOBJECT("cApplication")

*-- Configure application object.
goApp.SetCaption("ICG Real Estate System")
goApp.cStartupMenu= "menus\remain"
goApp.cStartupForm="forms\startup"
*-- Show application.
goApp.Show
*-- Release application.
RELEASE goApp
>If you don't want to distribute the individual files, the .mnx is the file you include in the .exe...not .MPR. You have these files checked as "Included" on the files tab of the "Project Information" screen, correct?
>
>If you post the code in your main program, maybe we can find the problem.
>
>>The relative path info was in there, but when I took it out, then the app really didn't find the menu, even though it was in the VFP path. Do I need to include the MPR in the project as well as the MNX? I have not tried that before.
>>>Jim,
>>>
>>>This is only a guess...
>>>
>>>In the code that runs the menu, or runs the .prg (or the set procedure command), is the path explicitely stated? For example, do you say something like:
>>>
>>>
do mrnu\menu1.mpr
>>>
>>>If so, remove the relative path from the DO command. In develop environment, you can use SET PATH to make sure it will find the procedures and menus when testing your app (when not running the .exe).
>>>
Jim Newsom
IT Director, ICG Inc.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform