Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem when using AddObject with a OLEcontrol
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00609163
Message ID:
00609406
Vues:
13
Hi Steve,

You cannot add it to the form this way but you can store reference to the object in the form's property.
thisform.AddProperty("oPinPad", createobject("rpreader.rppinpad"))
>I get the error "OLE error code 0x800004002 : no such interface supported."
>when I try to use AddObject.
>
> thisform.AddObject("oPinPad","OLEControl","rpreader.rppinpad")
>
>The odd thing is that I can use CreateObject on the same object and it works. The problem is that I really want to use AddObject to be consistent in my code.
>
> oPinPad = createobject("rpreader.rppinpad")
>
>Is there a difference between AddObject and CreateObject that would cause this?
>Are they using different interfaces for OLE objects?
>Is there anything that I can do to help the object creator understand why I get this error in VFP?
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform