Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
EXE file works ok within VFP7.0 but it doesn't outsid
Message
From
26/10/2002 18:53:25
 
 
To
26/10/2002 18:27:55
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00715811
Message ID:
00715829
Views:
18
>>I placed a WAIT WINDOW instruction with a Timeout of 10 and when I run the exe from outside VFP7, the message shows ok. So the program is running. But I do not see the main menu or the active window that should show up when running the program.
>
>Can you show us the relevant portions of you main program (the lines around READ EVENTS)? This way we may get to understand what is happenning. Use < PRE > and < /PRE > (without the spaces) to format your code sample. It should be something like:
>
* Main.prg
>SET EXCLUSIVE OFF
>* other SETs ...
>* ...
>DO MENUY MyMenu
>DO FORM MyForm
>* or whatever it is that starts the "look and feel" of your program.
>READ EVENTS
>* cleanup code goes here
>QUIT
>
>
>You do not specify if you use the VFP desktop or an SDI form as your main interfase.
>The aobe sample program should instance your menu and form then stop at READ EVENTS where it spends all of the time.
>An "EXIT" menu option or button in a form should issue a CLEAR EVENTS and then execution returns to the lines after READ EVENTS. You can also use an ON SHUTDOWN statement. For more info see the manual.
>
>HTH

It looks like when running the exe from outside VFP, it does not use the VFP desktop to put the menu. So, it put the menu somewhere else where I do not have access and that is why the program shows as running in the window tsk manager. How do I use the VFP desktop to work as it does when I run it from within VFP ?
Rosendo J. Roche
Previous
Reply
Map
View

Click here to load this message in the networking platform