Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Trouble accessing COM object properties
Message
De
16/04/2003 18:22:35
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Trouble accessing COM object properties
Divers
Thread ID:
00778657
Message ID:
00778657
Vues:
49
I am using a COM server written in C++ and I am having a few problems.

First, every time I try to get or set a property I get COM error 1426. I am trying to set the properties in a normal FoxPro fashion (eg. oCOMobj.Property = uSomeValue). The documentation for the COM object uses C++ definitions for properties like this:

HRESULT Property([out, retval] BSTR* pstrRetVal)

One thing to note is if I place a period after the property, intellisense displays a list of the valid property values to choose from which are displayed as properties.

Second, I don't know how to get successful return codes from the COM functions. When I execute one of the COM object functions, the documentation suggests that in C++, a 0 should be returned to HRESULT when a function call is successful. I don't know how to do the same in FoxPro.

Any help would be greatly appreciated.

Thanks in advance,
Tom Headrick
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform