Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Instantiating a visual class included in another exe
Message
From
30/10/2007 07:30:12
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Instantiating a visual class included in another exe
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP1
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01264963
Message ID:
01264963
Views:
74
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.
Next
Reply
Map
View

Click here to load this message in the networking platform