Re: Compiled .exe file doesn't run



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 exits
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
no
reason to call Release(), for starters, and I doubt you want to exit the
application immediately after the user logs in. Further, you follow it
with
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 of
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
Ok, I made the changes you suggested and now when I compile to an .exe,
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?


.



Relevant Pages

  • Re: Compiled .exe file doesnt run
    ... Can you post the code you use to verify a user log in and to call your main ... The code you've listed for the login form's destroy method is completely ... The program runs fine as a VFP app, but not as a standalone .exe app. ... so I compiled the application into an .exe file. ...
    (microsoft.public.fox.programmer.exchange)
  • Re: Start application before User Logon
    ... startup so that it is running before a user log on. ... Windows Service will work. ... there can be desktop interaction for changing settings, ... that the login dialog is displayed. ...
    (microsoft.public.dotnet.general)
  • Re: Converting A2K to Access 03
    ... Rick, I'm in the same boat as far as the user not being able to change ... user trys to run the app via the vbscript: ... user log out of the workstation, make the user an Admin on his or her own ... have the user log back in. ...
    (comp.databases.ms-access)
  • Re: Converting A2K to Access 03
    ... In our environment users don't have the abilty to change macro settings or ... user trys to run the app via the vbscript: ... user log out of the workstation, make the user an Admin on his or her own ... have the user log back in. ...
    (comp.databases.ms-access)
  • Re: Log on to Network
    ... I dunno about yes or no, I suppose you could do it via a login script... ... > What i'd like to do is that before a user log on to the ... > network I want to have a popup window that a user MUST ... > click yes/accept in order to continue. ...
    (microsoft.public.windows.server.networking)

Loading