Hi,
I'm trying to write my own custom operator interface (VC++ 6.0).
But when importing the ActiveX Control (Teststand.Engine) and trying to compile.
I get the following error:
sequencecontext.cpp(276) : error C2440: 'type cast' : cannot convert from
'struct IDispatch *' to 'class CEngine'
No constructor could take the source type, or constructor overload
resolution was ambiguous
the function it is talking about is outlined below:
CEngine CSequenceContext::GetEngine()
{
LPDISPATCH pDispatch;
InvokeHelper(0x3c, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&pDispatch,
NULL);
return CEngine(pDispatch);
}
The errro is on the line where the return is specified: saying that it can
not convert the LPDISPATCH parameter.
c
an someone help me out here...