- cominteropwithdotnetsource.zip
- COMInteropWithDOTNET
- COMInteropWithDOTNETSource
- ClassicCOM
- AirlineInformation
- AirlineNotify
- IceCreamParlor
- MyFlyer
- NETThreadDemoClient
- VBAirlineControlTower
- VBIceCreamParlor
- IceCreamMenu.cls
- stdole.dll
- VBIceCreamProject.exp
- VBIceCreamProject.lib
- VBIceCreamProject.vbp
- VBIceCreamProject.vbw
- VBTestClient
- VBWeatherStation
- DOTNET-CSharpFiles
- cominteropwithdotnetdemo.zip
- COMInteropWithDOTNETDemo
- AirlineClient.exe
- AirlineInformation.dll
- AirlineMetadata.dll
- AirlineNotify.exe
- AirlineNotifyClient.exe
- AirlineNotifyMetadata.dll
- ControlTower.exe
- DelegateTest.exe
- Directional.dll
- FlightClient.exe
- HelloDotNet.dll
- HelloWorldDelegate.exe
- IceCreamMenuClient.exe
- IceCreamMenuMetadata.dll
- IceCreamParlor.dll
- MyFlyer.dll
- MyFlyerMetadata.dll
- NETThreadDemoClient.exe
- RegisterAll.bat
- SevenDwarfs.exe
- Temperature.dll
- VBIceCreamProject.dll
- VBTestClient.exe
- VBWeatherStation.exe
- WeatherNotify.dll
- cominterop_demo.zip
- ComInteropDemo
- AirlineCSharpClient
- AirlineInformation
|
#ifndef _AIRLINENOTIFYCP_H_
#define _AIRLINENOTIFYCP_H_
template <class T>
class CProxy_IAirlineArrivalPagerEvents : public IConnectionPointImpl<T, &DIID__IAirlineArrivalPagerEvents, CComDynamicUnkArray>
{
//Warning this class may be recreated by the wizard.
public:
HRESULT Fire_OnAirlineArrivedEvent(BSTR bstrAirlineName, BSTR bstrArrivalTerminal)
{
CComVariant varResult;
T* pT = static_cast<T*>(this);
int nConnectionIndex;
CComVariant* pvars = new CComVariant[2];
int nConnections = m_vec.GetSize();
for (nConnectionIndex = 0; nConnectionIndex < nConnections; nConnectionIndex++)
{
pT->Lock();
CComPtr<IUnknown> sp = m_vec.GetAt(nConnectionIndex);
pT->Unlock();
IDispatch* pDispatch = reinterpret_cast<IDispatch*>(sp.p);
if (pDispatch != NULL)
{
VariantClear(&varResult);
pvars[1] = bstrAirlineName;
pvars[0] = bstrArrivalTerminal;
DISPPARAMS disp = { pvars, NULL, 2, 0 };
pDispatch->Invoke(0x1, IID_NULL, LOCALE_USER_DEFAULT, DISPATCH_METHOD, &disp, &varResult, NULL, NULL);
}
}
delete[] pvars;
return varResult.scode;
}
};
#endif
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.
A list of licenses authors might use can be found here
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.