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
27/10/2002 09:19:42
 
 
To
27/10/2002 01:14:06
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00715811
Message ID:
00715865
Views:
26
This message has been marked as the solution to the initial question of the thread.
>>>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
>
>I install VFP7 in my laptop and copy the project. I generate the EXE again and still have the same problem. So, it was not a matter of the two monitors,

It sounds very much like there is a SCREEN=OFF in the CONFIG.FPW, trying to hide the main VFP window, and the Forms in your app are not Top-Level forms, so that they run in the context of the VFP main screen. If this is the case, try removing the SCREEN=OFF statement from your CONFIG.FPW, or add the line _SCREEN.Visible = .T. to the main line program just before you invoke your menu and Forms. If this fixes the problem but brings up the main VFP scree, you are left with a couple of choices; you can leave the VFP main screen up, or you can convert at least the main screen to a Top-Level form, and all child forms to operate within the context of the current Top-Level form. There are issues of modality and menu referencing associated with changing to Top-Level form operation.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform