Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Instantiating a visual class included in another exe
Message
De
30/10/2007 07:40:40
 
 
À
30/10/2007 07:30:12
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP1
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01264963
Message ID:
01264967
Vues:
16
>Hi,
>is it possibile to instantiate a visual class included in another exe?
>
>I've already asked this time ago, and I thought the issue was solved, but I then realized that I was in error. O:-)
>
>Let me explain:
>
>There's a main executable called MAIN.EXE.
>It includes a VCX (MYCONTROLS.VCX) containing a lot of visual classes I'd like to use within my application.
>Ok, other than this MAIN.EXE, I've other projects (every project is targeted to solve a particular problem); in these secondary projects I've forms using these visual classes.
>
>To recap..
>
>MAIN.PJX
>-> MYCONTROLS.VCX - included
>-> NONVISUALCLASSES.VC - included
>-> MYLIBRARY.PRG - included
>-> bla bla bla :)
>
>CHILD.PJX
>-> MYFORM - included
>-> MYCONTROLS - excluded
>
>If I distribute MAIN.EXE (w/out MYCONTROLS.VCX), CHILD.EXE and MYCONTROLS.VCX, the form runs fine.
>If otherwise I distribute MAIN.EXE (with MYCONTROLS.VCX) and CHILD.EXE, loading the form returns error 2005 "Error loading file - record number 3. etc..".
>
>I'd like to:
>1) Not distribute the VCX
>2) Not include the VCX in all child projects.
>
>I've tried to issue
>
>lcExe = "main.exe"
>set classlib to MYCONTROLS.VCX in (lcExe) additive
>
>
>from the main program of my child projects and also in other places without success.
>
>Any suggestion?
>Thank you.

usa NEWOBJECT()
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform