Cisco Cisco Computer Telephony Integration Option 9.0 Developer's Guide

Page of 546
 
4-19
Cisco ICM Software CTI OS Developer’s Guide Release 6.0(0)
 
Chapter 4      Building Your Application
Using the C++ CIL and static libraries
AtlAdvise(m_pSession, m_EventSink.GetIDispatch(FALSE),                      
__uuidof(_IAllEvents), &m_dwEventSinkAdvise);
When the program run is complete, the client must unsubscribe from the event 
source, using the AtlUnadvise() method:
// Unsubscribe from the Session object for the _IAllEvents interface
HRESULT hRes = 
AtlUnadvise( m_pSession, __uuidof(_IAllEvents), m_dwEventSinkAdvise );
Next Steps
For detailed information on the CTI OS client start up and shut down 
sequence, see the section “Disconnecting from CTI OS Server”.
For detailed information on the CTI OS Client Interface Library objects, see 
Chapters 8 through 12.
For a complete sample application that uses the CIL COM interface written 
in C++, see the Comphone sample application on the CTI OS CD.
Using the C++ CIL and static libraries
The CTI OS Client Interface Library for C++ is the most powerful, 
object-oriented CTI interface for C++ developers.  It provides the same interface 
methods and events as the COM interface for C++, but will be more 
straightforward for C++ developers who are not experienced COM programmers, 
and will provide faster code execution.
The CIL interface for C++ is a set of C++ header files (.h), and static libraries 
compiled for the Win32 platform (Windows NT, Windows 2000). The header files 
required to access the class definitions are located on the CTI OS SDK media in 
the CTIOSToolkit\Include\ directory, and the static libraries are located in the 
CTIOSToolkit\Lib\ directory. 
Header Files and Libraries
The header files you will most likely require are all included in the main CIL 
header file, CIL.h, which you would want to include in your application.