Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Createobject returns error code 0x80004002
Message
 
 
To
12/12/2001 16:15:42
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00593545
Message ID:
00593560
Views:
27
>I get this the error code "ole error code 0x80004002: no such interface supported" when I try to do a createobject("theobjectname") - what does this mean? What are the rules for using active x or type libraries in Visual Foxpro 6 - what can and can't you do and what kind of controls can you work with?
>
>From: Ed Johnson

Ed,
CreateObject returns a object reference to the IDispatch interface. This is used by late-binding clients. Not all COM objects support this interface; therefore, they are only usable by early-binding clients (VB, VC++, etc.).

Check the documentation for early- vs. late- binding to see if it supports both.

This is one of the reasons you should upgrade to 7.0, if you can. While the CreateObject function only supports late-binding, the CreateObjectEx function was enhanced to support early-binding. It works great!!

HTH.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform