Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
AddObject problem
Message
De
18/06/2002 02:42:11
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00669545
Message ID:
00669586
Vues:
15
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]
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform