ActiveX method problems [message #39981] |
Tue, 29 June 2004 08:46 |
b_gom
Messages: 105 Registered: April 2003
|
Senior Member |
|
|
For any external development gurus out there:
I'm trying to write an interface for some hardware which uses ActiveX
controls for interfacing with the PC. The vendor supplied VB and C++
example porgrams that use them, and they work fine. The controls I
want to use do not have GUIs associated with them. However, when I try
to call any of the ActiveX methods, I get the error: "Unable to call
method BLAH. Catastrophic failure".
IDLcomIDispatch seems to create the object properly, but none of the
methods seem to be resolved. How do I debug this problem?
What ActiveX features are not supported by IDL?
Does the fact that the Interface Description file contains :
[
uuid(A4E2DC51-1A67-11D6-A2CE-0001022E1B44),
helpstring("Dispatch interface for A32CtrlControl"),
hidden
]
dispinterface _DA32Control {
properties:
[id(0x00000001)
]
long Card;
...
methods:
[id(0x00000005)]
long Open();
[id(0x00000006)]
long Close();
...
Instead of something like:
interface IRSIDemoObj1 : IDispatch {
[id(0x00000001)]
HRESULT GetCLSID([out, retval] BSTR* pBstr);
[id(0x00000002), propput]
...
have anything to do with it?
Thanks
Brad
|
|
|