Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Executable does not function with VFP 6
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00709697
Message ID:
00709987
Views:
17
Hi Ed,

How can you be everywhere at the same time? ;-)
Always there to help... appreciated.

Your comments forced me to review all the parameters and indeed the property of the form had to be Window Type = 1 (Modal)

It now works fine in both .APP and .EXE

But I have this VFP window behind when running the .EXE. How can I get rid of that?

Réal

================================================================

>>Hi Jim,
>>
>>I just built this small application for a test.
>>
>>* TIME.PRG
>>*-------------------------------------------
>>ON SHUTDOWN CLEAR EVENTS
>>clear windows all
>>SET CURSOR ON
>>DO FORM TIME
>>READ EVENTS
>>ON SHUTDOWN
>>
>
>My guess is that you're disabling the VFP _SCREEN context via something like SCREEN=OFF in CONFIG.FPW or setting _SCREEN.VISIBLE=.f., and the offending form is created in the VFP default IN SCREEN context (the Form's ShowWindow property is 0) - you need to make it a Top-Level form (ShowWindow=2) if it needs to be active and visible with VFP's screen disabled, and any child forms show have a ShowWindow value of 1 (In Top-Level Window).
>
>>Again, it works just fine as an .APP but not as an .EXE
>>
>>There is also a CLEAR EVENTS into the Quit button of the form.
>>It act just like the READ EVENTS is not there. I can see the form appearing a fraction of a second and disapear.
>>
>>Does it has something to do with the compilation process - Win32 executable/COM server (exe) - or can it be a bug or shoud I have to change something in the form???
>>
>>Réal
>>
Réal Philippon
www.ultra.ca
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform