TAPI event processing problems
From: Sub (subdene_at_hotmail.com)
Date: 06/20/04
- Next message: Mike: "Re: UK Caller ID"
- Previous message: Alex Feinman [MVP]: "Re: Basic information require for TAPI programming in C#"
- Next in thread: Alex Feinman [MVP]: "Re: TAPI event processing problems"
- Reply: Alex Feinman [MVP]: "Re: TAPI event processing problems"
- Messages sorted by: [ date ] [ thread ]
Date: 20 Jun 2004 13:45:57 -0700
Hello, I would be extremely grateful to anyone who could explain why
we have to do the following to register the TAPI event interface. I
cant understand why we have to create an IConnectionPointContainer in
order to obtain an IConnectionPoint to the particular outgoing IID,
and then from the IConnectionPoint you have to call advise in order to
connect "the connection point and the caller's sink."
Firstly, what is an outgoing interface? is this an example of an
outgoing interface?
m_hrRetResult = m_IpAddress->QueryInterface(IID_ITAddressCapabilities,
(void**) &pAddressCaps); i.e. getting an interface to the address
capabilities?
Secondly, what is the callers sink? Is this my implementation of a
switch handler to handle all the event messages?
Thirdly, why cant I just define a function with the appropriate cases
to process all the events, e.g. EXAMPLE ONLY!
HRESULT OnTapiEvent( TAPI_EVENT TapiEvent)
{
switch ( TapiEvent )
{
case TE_CALLNOTIFICATION : {} break;
case TE_CALLSTATE : {} break;
}
}
Then on the main tapi interface ptr (IID_ITTAPI) just pass the name of
the function which is handling the events to the tapi interface, then
the tapi can call my function passing the event as an argument to the
function. I cant understand why we need IConnectionPointContainer, and
IConnectionPoint. If anyone could could shed some light on this, it
would be much appreciated.
Thanks in advance, Dene.
- Next message: Mike: "Re: UK Caller ID"
- Previous message: Alex Feinman [MVP]: "Re: Basic information require for TAPI programming in C#"
- Next in thread: Alex Feinman [MVP]: "Re: TAPI event processing problems"
- Reply: Alex Feinman [MVP]: "Re: TAPI event processing problems"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|