Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using .vcx compiled in one .exe by another .exe
Message
De
18/05/2001 13:21:04
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00508751
Message ID:
00508852
Vues:
19
>Hi!
>
>As I already suggested, set the class library in the child EXE using function >from the main.exe. You can set that library in the main.exe before child.exe >is called. This way child.exe can use it, however, ensure ADDITIVE word is >everywhere and SET("CLASSLIB") lists that library is loaded.

I'll give this a whirl and see. But, because the ALIAS option of SET CLASSLIB is not working (does it work for you?), I'm going to have to unload the mainlib then reload it because when I try to call it again, it says it's already in use... <g> already in use but it can't find it... I need a drink

Thanks for your time with this Vlad




>
>Finally, how you run a child exe? do you run it by DO command from VFP? If you run it as a separate applciation, of course, this will never work and child application should be compiled with that library included.
>


I run the child exe by calling an oApp method with a menu pad command:
oApp.DoExe("wtwuoem","lwtwuoem")


oApp.DoExe Method
-----------------
LPARAMETERS tcExe, tcSecCode, tcParm1, tcParam2
tcExe = tcExe + ".exe"
** Check if user has rights for the desired form
IF EVAL("oApp.oSecurity." + tcSecCode) = .T.
DO CASE
CASE PARAMETERS() = 2
DO (tcExe)
CASE PARAMETERS() = 3
DO (tcExe) WITH tcParm1
CASE PARAMETERS() = 4
DO (tcExe) WITH tcParm1, tcParm2
ENDCASE
ELSE
=MESSAGEBOX("You do not have rights for the requested screen.",0+16,"Access Denied")
ENDIF


VFP6 SP5, VFP8 SP1, VFP 9 SP 1 and Win XP SP 3 (unless otherwise specified)


www.wulfsden.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform