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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

exe not working

Status
Not open for further replies.

PeriyurParthi

IS-IT--Management
Jul 18, 2001
258
IN
hi all
iam new to vfp, i have developed a sample menu program useing create menu, after that i have include the .mpx in form, after completing everything like proj and app and exe,
when i use to run it from my run menu in win 98, it just diappears, i hope exe is not woreking, pls help me to come out of the problem
thanks
parthi
 
hi gentle men

i have tried out with thread but it is not working is anyother way pls help
regds
parthi
 
If the thread didn't help, could you post the code ( if too long, abbreviated) in your main program ?

- What is in the thread is the way to go if you are using a single main form application.

HTH,
Weedz (Wietze Veld)
My private project:And especially for VFP rookies:
 
thank u v.much veed

here is what i need and what i did

1) a menu(design) generated file as menu.mpr, this menu is included in main.frm (do menu.mpr ), this main.frm is been called from main.prg, after completing all the above and including the clear events, and do events as advised by u and after building app,proj and exe, i could not able to run the exe, it just disappearing from my explorer within a milli seconds. can u pls able to explain me in detail.
thanks
parthi
 
general2000

What would have been helpful is if you had posted your code as suggested by Weedz.

For the moment I suggest to call your menu form MAIN.prg before calling your main form.

I also assume do events in your last post is READ EVENTS.

* Beginning of main.prg
* Setup code
*
DO menu.mpr
DO FORM frmmain NAME oMAIN LINKED
READ EVENTS
QUIT
* End of program

* In the frmmain.Destroy event put:-
CLEAR EVENTS

Chris :)
 
thanks cris,
here is my code
** in form activate event (or ) menu.mpr



*!* SET SYSMENU TO
*!* SET SYSMENU AUTOMATIC

*!* DEFINE PAD Daily OF _MSYSMENU PROMPT &quot;\<Daily Entries&quot; COLOR SCHEME 3 key alt+D,&quot;ALT+D&quot;
*!* define pad mast1 of _MSYSMENU prompt &quot;\<Masters&quot; color scheme 3 KEY ALT+M,&quot;ALT+M&quot;
*!* define pad reports1 of _msysmenu prompt &quot;\<Reports&quot; color scheme 3 key alt+R,&quot;ALT+R&quot;
*!* define pad monthly1 of _msysmenu prompt &quot;\<Monthly&quot; color scheme 3 key alt+M,&quot;ALT+M&quot;
*!* define pad utils of _msysmenu prompt &quot;\<Utils&quot; color scheme 3 key alt+U,&quot;ALT+U&quot;
*!* define pad exit1 of _msysmenu prompt &quot;\<Exit&quot; color scheme 3 key alt+E,&quot;ALT+E&quot;

*!* on pad daily of _msysmenu activate popup daily
*!* DEFINE POPUP daily MARGIN RELATIVE SHADOW COLOR SCHEME 4
*!* DEFINE BAR 1 OF daily PROMPT &quot;\<Job Work Invoice&quot;
*!* DEFINE BAR 2 OF daily PROMPT &quot;\<Purchase&quot;
*!* define bar 3 of daily prompt &quot;\<Receipt From Jobwork&quot;
*!* define bar 4 of daily prompt &quot;\<Transfer From Jobwork&quot;

*!* on pad mast1 of _msysmenu activate popup mast1
*!* define popup mast1 margin relative shadow color scheme 4
*!* define bar 1 of mast1 prompt &quot;\<Count&quot;
*!* define bar 2 of mast1 prompt &quot;\<Lot No&quot;
*!* define bar 3 of mast1 prompt &quot;\<Color&quot;

*!* on pad reports1 of _msysmenu activate popup reports1
*!* define popup reports1 margin relative shadow color scheme 4
*!* define bar 1 of reports1 prompt &quot;\<JobWork Invoice&quot;
*!* define bar 2 of reports1 prompt &quot;\<DateWise JobWork Invoice&quot;
*!* define bar 3 of reports1 prompt &quot;\<Process Wise Jobwork Invoice&quot;
*!* define bar 4 of reports1 prompt &quot;\<Count Wise JobWork Invoice&quot;
*!* DEFINE BAR 5 OF reports1 PROMPT &quot;\-&quot;
*!* define bar 6 of reports1 prompt &quot;\<DateWise JobWork Receipts&quot;
*!* define bar 7 of reports1 prompt &quot;\<Party Wise Jobwork Receipts&quot;
*!* define bar 8 of reports1 prompt &quot;\<COuntWise JobWork Receipts&quot;

*!* on pad monthly1 of _msysmenu activate popup monthly1
*!* define popup monthly1 margin relative shadow color scheme 4
*!* define bar 1 of monthly1 prompt &quot;\<Monthly&quot;

*!* on pad utils of _msysmenu activate popup utils
*!* define popup utils margin relative shadow color scheme 4
*!* define bar 1 of utils prompt &quot;\<Index&quot;

*!* on pad exit1 of _msysmenu activate popup exit1
*!* define popup exit1 margin relative shadow color scheme 4
*!* define bar 1 of exit1 prompt &quot;\<Exit&quot;


do form menu name omain linked
read events
retur


**destroy event
clear events

completing every thing then i use buile app,proj and then exe.
this is not working in my explorer

immly reply pls

thanks
parthi


 
What is the type of your main form (ShowWindow property), it should be 'As top level form'.

The reason for dissapperaing can be:
Probably your app is running but since the VFP screen is invisble you do not see your app.

Check the task manager if your app is running.

HTH,
Weedz (Wietze Veld)
My private project:And especially for VFP rookies:
 
general2000

Your menu code runs standalone and produces a menu on screen.

Again I suggest you follow the format in the previous post, take the menu out of the form, and put a WAIT WINDOW in to stop execution of your main form.

This will enable you to start to determine where the problem is.

* Beginning of main.prg
* Setup code
*
DO menu.mpr
WAIT WIND [Menu loaded]
DO FORM frmmain NAME oMAIN LINKED
READ EVENTS
QUIT
* End of program

* In the frmmain.Destroy event put:-
CLEAR EVENTS

If the menu runs successfully, move the WAIT WINDOW into the form's events.

The firing order is :-

.Load
.Init
.Show
.Activate

Sooner or later you should find the offending code.

Chris :)
 
general2000

Following weedz's comments, check that your config.fpw, assuming you are using one, does not have SCREEN = OFF in it.

If it has, you will need to put _SCREEN.Visible = .T. in the startup code of MAIN.prg

Chris :)
 
i dont no what the heck happened it is not at all working,
pls help me
bye
parthi
 
yeaaaaaaaaaahhhhhhhh
finally its working, the problem is in config.fpw we have to enable the form, thanks a lot for all who have helped me,thank u very much chris,
i love you all
cheers
parthi
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top