Re: Compiled .exe file doesn't run
- From: Leemi@xxxxxxxxxxxxxxxxxxxx (Lee Mitchell)
- Date: Thu, 27 Jul 2006 13:54:34 GMT
Hi wickedbusa:
Can you post the code you use to verify a user log in and to call your main
menu form?
I hope this helps.
This posting is provided "AS IS" with no warranties, and confers no rights.
Sincerely,
Microsoft FoxPro Technical Support
Lee Mitchell
*-- VFP9 HAS ARRIVED!! --*
Read about all the new features of VFP9 here:
http://msdn.microsoft.com/vfoxpro/
*--Purchase VFP 9.0 here:
http://www.microsoft.com/PRODUCTS/info/product.aspx?view=22&pcid=54787e64-52
69-4500-8bf2-3f06689f4ab3&type=ovr
Keep an eye on the product lifecycle for Visual FoxPro here:
http://support.microsoft.com/gp/lifeselectindex
- VFP5 Mainstream Support retired June 30th, 2003
- VFP6 Mainstream Support retired Sept. 30th, 2003
Dan Freeman wrote:
No, the system does not run just fine as an app. It starts, and then exitsno
just as the exe does. But in the VFP IDE, it leaves you at the command
window. When the command window is present, no code is running. <s>
The code you've listed for the login form's destroy method is completely
wrong. Destroy happens after a form has already been released so there's
reason to call Release(), for starters, and I doubt you want to exit thewith
application immediately after the user logs in. Further, you follow it
QUIT which means the user will never get to your read events in the first
place.
Your READ EVENTS is in the right place, but CLEAR EVENTS should only be
called when the user is exiting the application.
But even more basic, is your main.prg set as your main program in the
project? (Right click it and set main.) You didn't describe any login form
appearing at all.
Dan
wickedbusa wrote:
I've looked into it and the lack of example in VFP's help file is ofOk, I made the changes you suggested and now when I compile to an .exe,
no help. All I want to do is start the progarm off with a log in
screen. So, my main.prg is simply:
DO FORM login
READ EVENTS
In the login form's DESTROY method, I have
thisform.release()
clear events
quit
The program runs fine as a VFP app, but not as a standalone .exe app.
Anything else I am missing?
Gene Wirchenko wrote:
On 26 Jul 2006 14:53:09 -0700, "wickedbusa" <wickedbusa@xxxxxxxxx>
wrote:
Hi everyone. I just completed an application in VFP 8. If I compile
the application as am .app file, the application runs just fine.
Problem is, the client that will be using this application doesn't
have VFP, so I compiled the application into an .exe file. If the
file is compiled into a .exe file, the application doesn't run when
I double click the icon. I get a quick flash on the screen of
something, then that's it. The app then just stays in memory, but
doens't appear on the screen. What am I doing wrong here?
Take a look at READ EVENTS.
Sincerely,
Gene Wirchenko
I do get the login screen that works great. Problem is, after I
successfully log in, I do not get the main menu. All I get is the
disappearance of the login screen, but not the main menu. How do I go
about successfully calling the main menu form after successfully
logging in?
.
- Follow-Ups:
- Re: Compiled .exe file doesn't run
- From: wickedbusa
- Re: Compiled .exe file doesn't run
- References:
- Compiled .exe file doesn't run
- From: wickedbusa
- Re: Compiled .exe file doesn't run
- From: wickedbusa
- Compiled .exe file doesn't run
- Prev by Date: Re: browser.app not working
- Next by Date: Re: browser.app not working
- Previous by thread: Re: Compiled .exe file doesn't run
- Next by thread: Re: Compiled .exe file doesn't run
- Index(es):
Relevant Pages
|
Loading