class CCDMAX: public COleDispatchDriver
{
Public:
COleDispatchDriver CCDMAX () {}//call the default constructor
CCDMAX (LPDISPATCH pDispatch) : COleDispatchDriver (pDispatch) {}
CCDMAX (const CCDMAX& DispatchSrc) : COleDispatchDriver (dispatchSrc) {}
//attribute
Public:
//
Public:
//ICDMAX method
Public:
Void GetIMSI ()
{
InvokeHelper (0 XFC, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}
CCDMAXEvents part code is as follows:
class CCDMAXEvents: public COleDispatchDriver
{
Public:
COleDispatchDriver CCDMAXEvents () {}//call the default constructor
CCDMAXEvents (LPDISPATCH pDispatch) : COleDispatchDriver (pDispatch) {}
CCDMAXEvents (const CCDMAXEvents& DispatchSrc) : COleDispatchDriver (dispatchSrc) {}
//attribute
Public:
//
Public:
//ICDMAXEvents method
Public:
STDMETHOD (OnIMSI) (LPCTSTR IMSI)
{
Retrieves the result;
The static BYTE parms []=VTS_BSTR;
InvokeHelper (0 XDF, DISPATCH_METHOD VT_HRESULT, (void *) & amp; The result, parms, IMSI);
return result;
}
CCDMAX object call GetIMSI response to CCDMAXEvents OnIMSI () function?
CodePudding user response:
There should be a higher application layer will these two classes (/variable) associatedCodePudding user response:
Baidu search relevant keywords,CodePudding user response:
Must be linked bridge between two classes,CodePudding user response: