Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
AddObject problem
Message
From
17/06/2002 22:28:02
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
AddObject problem
Miscellaneous
Thread ID:
00669545
Message ID:
00669545
Views:
44
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
Next
Reply
Map
View

Click here to load this message in the networking platform