- Timestamp:
- Jun 6, 2006 6:40:40 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/activex-pjsua/activex-pjsuaCP.h
r487 r492 3 3 4 4 //#import "C:\project\pjproject\pjsip-apps\src\activex-pjsua\activex-pjsua.tlb" raw_interfaces_only, raw_native_types, no_namespace, named_guids //"Import typelib" 5 5 6 template <class T> 6 7 class CProxy_IPjsuaEvents : public IConnectionPointImpl<T, &DIID__IPjsuaEvents, CComDynamicUnkArray> … … 148 149 149 150 } 151 VOID Fire_OnIncomingCall(INT call_index) 152 { 153 T* pT = static_cast<T*>(this); 154 int nConnectionIndex; 155 CComVariant* pvars = new CComVariant[1]; 156 int nConnections = m_vec.GetSize(); 157 158 for (nConnectionIndex = 0; nConnectionIndex < nConnections; nConnectionIndex++) 159 { 160 pT->Lock(); 161 CComPtr<IUnknown> sp = m_vec.GetAt(nConnectionIndex); 162 pT->Unlock(); 163 IDispatch* pDispatch = reinterpret_cast<IDispatch*>(sp.p); 164 if (pDispatch != NULL) 165 { 166 pvars[0] = call_index; 167 DISPPARAMS disp = { pvars, NULL, 1, 0 }; 168 pDispatch->Invoke(0x6, IID_NULL, LOCALE_USER_DEFAULT, DISPATCH_METHOD, &disp, NULL, NULL, NULL); 169 } 170 } 171 delete[] pvars; 172 173 } 150 174 }; 151 175 #endif
Note: See TracChangeset
for help on using the changeset viewer.