Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

EXE is not Appearing on Desktop 1

Status
Not open for further replies.

OraWiz

Programmer
Aug 17, 2003
37
IN
I have made a vfp6 application and the corresponding executable also(MyApp.EXE) . I want to call this executable (.EXE) with a shortcut. I am using MyApp.EXE –E at the target name of the shortcut ,(tried all combination, same this is working properly with Do MyApp.EXE in Command window ) but thou the application is running, the first screen is not appearing on the desktop. My first form is a MODEL type. Somebody please give me a clue.
 
Hi
In your Main.Prg or the code where you call your MainMenu.MPR

add as the next line..

READ EVENTS


Then in the exit form of your application..
In its QueryUnload event add the code..
CLEAR EVENTS

This will sort out. If you dont use the CLEAR EVENTS, the application will quit but the process will not end and you will see it with great '3 finger salute'.

:)

ramani :)
(Subramanian.G)
 
Ramani,
I am already doing the same
My sequence is From; main.Prg, I am calling a class object, from that object I am calling the Login Screen and if valid Login then Showing the main screen with menu After showing menu I am calling READ EVENTS

Main. Prg
========
oApp = CREATEOBJECT("AIMS")
IF TYPE('oApp') = "O"
oApp.Do()
ENDIF

AIMS.Do()
========
loForm = CREATEOBJECT("user_login")
loForm.Show()
DO WHILE .T.
READ EVENTS
ENDDO


user_login ( Login Logic )
===========================
* // Following code in the Login Button of the Login Screen //

IF Login
oApp.UserName = Upper(ThisForm.logUser.Value)
oApp.AddObject("oMainForm", "MAINFORM") && Just a display screen
ThisForm.release()
oApp.oMainForm.Show()
Do (ThisForm.parent.MediaMenu)
ENDIF

All these code are working fine on the development environment, But when Executable is working first of all the Login Screen is not appearing which is modal form ( Rest all forms are modeless, weather this will make any difference )

 
You really don't want that DO WHILE .T. loop around your READ EVENTS - CLEAR EVENTS will never be able to terminate this loop.

Rick

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top