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.