Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trouble accessing COM object properties
Message
From
16/04/2003 18:22:35
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Trouble accessing COM object properties
Miscellaneous
Thread ID:
00778657
Message ID:
00778657
Views:
48
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
Next
Reply
Map
View

Click here to load this message in the networking platform