Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
AddObject problem
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
AddObject problem
Divers
Thread ID:
00669545
Message ID:
00669545
Vues:
43
Hi

How do I add an object in a DLL

I can do
WITH pForm
	.AddObject('myContainer','Container')  &&Add Container to form
	.myContainer.visible=.T.
ENDWITH
where I pass pForm to my DLL, but I cannot do
SET CLASSLIB TO 's:\pc source\gen.vcx' ADDITIVE
WITH pForm
	.AddObject('myContainer','interopt')  &&Add Container to form
	.myContainer.visible=.T.
ENDWITH
where interopt is a container object defined in gen.vcx.

It works fine when not in a DLL but gives me an OLE IDispatch Error 733 telling me Class definition INTEROPT is not defined when I try to use it in a DLL.

Can anyone tell me what I am doing wrong?

regards
Geoff Scott
May all your weeds be wildflowers
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform