Home > Software engineering >  How to use com back
How to use com back

Time:09-30

There are two classes, CCDMAX and CCDMAXEvents,
 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) associated

CodePudding user response:

Baidu search relevant keywords,

CodePudding user response:

Must be linked bridge between two classes,

CodePudding user response:

reference xinhaoda reply: 3/f
must be connection between two classes of Bridges,
ocx in these two classes, how can I associate

CodePudding user response:

reference 1st floor zgl7903 response:
there should be a higher application layer will these two classes (/variable) associated
ocx in these two classes, how can I associate

CodePudding user response:

MSDN check points
  • Related