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 12:35:57
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00508751
Message ID:
00508812
Vues:
21
>Hi!
>
>Well, did you used 'ADDITIVE' When setting VCX second time? WIthout that second SET CLASSLIB overrides the first one. WIth ADDITIVE both libraries will be loaded in the memory.
>
>BTW, for debugging purposes, just display the result of the 'SET("CLASSLIB")' function. This way you will see wich libraries are currently loaded.
>
>HTH.


Yes, I made sure that I included the ADDITIVE option when opening the second class library in the oApp.Init.

While debugging, in addition to showing the set('classlib'), I'm also showing curdir(), set('path') right before I do the new form, just to make sure things are where I want them to be...

Here's my current sequence of events:
In the main.prg, I call the SetPath() function, which among other things does a SET CLASSLIB TO mainlib

If SetPath() evaluates to true, I then oApp = CREATEOBJECT("Application")
When oApp gets created, in the oApp.Init I have a:
SET CLASSLIB TO registry ADDITIVE
This.AddObject("oGetIni", "oldinireg")


Now, the second .exe I'm launching has a main program with just:
*** For debug only
?curdir()
?set('path')
?Set('classlib')
****
* Been trying to use any of the following lines
* SET CLASSLIB TO mainlib IN main.exe ADDITIVE ALIAS mainlib2
* SET CLASSLIB TO mainlib IN main.exe ADDITIVE
* SET CLASSLIB TO mainlib

DO FORM wtwuoem
All of the SET CLASSLIB attempts above return some error
and if I don't use one at all, I still get error instantiating class eventhough the SET('classlib') clearly shows both the mainlib and registry libraries are loaded.


- Brian


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


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

Click here to load this message in the networking platform