General information
Category:
ActiveX controls in VFP
Title:
Problem when using AddObject with a OLEcontrol
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?
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only