Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to call .APP program from .EXE?
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
How to call .APP program from .EXE?
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01105690
Message ID:
01105690
Vues:
60
I am doing a little testing of calling an .APP program from .EXE (I am trying to break my application into several .APP programs so that the .EXE size would be reduced).

1. I create a small project that consisted of just one Form. Compiled it into test.app program. When I call this test.app from my "main" exe the form appears on the top of the existing application without affecting the existing application. When I close the form of test.app all goes back to normal, no changes to the main application. I like how it worked.

2. I created a small project that consisted of one .prg and one class library with a form class. The test.prg instantiates the form class and .shows() it. When I call this test.app program, it closes the form currently opened in the calling program (in .exe program). The form of test.app then appears. But I didn't like that the test.app closed the currently opened form.

My question is, what should I do in the main .prg program of the test.app to prevent it from closing forms of the calling program?

Thank you.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform