Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
AddObject problem
Message
From
18/06/2002 02:42:11
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
 
To
17/06/2002 22:28:02
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00669545
Message ID:
00669586
Views:
14
This message has been marked as a message which has helped to the initial question of the thread.
Hi Geoff,

I have never done this with a DLL, but have you tested NewObject() method? There is a third parameter for source.

Agnes
>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
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform