Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Createobject returns error code 0x80004002
Message
 
 
À
12/12/2001 16:15:42
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00593545
Message ID:
00593560
Vues:
28
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform