T
tropictroop
Hi, I get the following error when I try to compile my c++ code which
has a segment like:
__interface IObject1 : IDispatch
{
HRESULT COMTry([in]HDEVINFO DeviceInfoSet,[in]MYSTRUCT *ptr,[in]BSTR
*bstr);
};
and its implementation in a derived class as:
HRESULT COMTry(HDEVINFO vptr, MYSTRUCT *ptr,BSTR *bstr)
{
return S_OK;
}
error MIDL2139 : type of the parameter cannot derive from void or void
* : [ Type 'HDEVINFO' ( Parameter 'DeviceInfoSet' ) ]
Actually DeviceInfoSet is a variable of type HDEVINFO(HDEVINFO defined
as PVOID in SetUpAPI.h). Any help would be appreciated.
Thanks in advance.
Kris.
has a segment like:
__interface IObject1 : IDispatch
{
HRESULT COMTry([in]HDEVINFO DeviceInfoSet,[in]MYSTRUCT *ptr,[in]BSTR
*bstr);
};
and its implementation in a derived class as:
HRESULT COMTry(HDEVINFO vptr, MYSTRUCT *ptr,BSTR *bstr)
{
return S_OK;
}
error MIDL2139 : type of the parameter cannot derive from void or void
* : [ Type 'HDEVINFO' ( Parameter 'DeviceInfoSet' ) ]
Actually DeviceInfoSet is a variable of type HDEVINFO(HDEVINFO defined
as PVOID in SetUpAPI.h). Any help would be appreciated.
Thanks in advance.
Kris.