Руководство Разработчика для Cisco Cisco Computer Telephony Integration OS 8.5
4-14
CTI OS Developer’s Guide for Cisco Unified Contact Center Enterprise
Release 8.5(3)
Chapter 4 Building Your Application
Using the C++ CIL and Static Libraries
AtlUnadvise( m_pSession, __uuidof(_IAllEvents), m_dwEventSinkAdvise );
Next Steps
•
For detailed information on the CTI OS client start up and shut down sequence, see section
“
“
•
For detailed information on the CTI OS Client Interface Library objects, see Chapters 8 through 12.
The C++ Client Interface Library (C++ CIL.) application is a programming interface (API) used to
build high performance CTI enabled desktop or server-to-server integration that use Cisco CTI OS.
The API is deployed as a set of C++ static libraries and is used to build Win 32 or console based
applications.
build high performance CTI enabled desktop or server-to-server integration that use Cisco CTI OS.
The API is deployed as a set of C++ static libraries and is used to build Win 32 or console based
applications.
•
For a complete sample application that uses the CIL COM interface written in C++, see the
Comphone sample application on the CTI OS CD.
Comphone sample application on the CTI OS CD.
Using the C++ CIL and Static Libraries
Note
You must use Visual Studio .NET 2005 to build all C++ applications using C++ CIL 8.0(1).
Applications using C++ CIL 8.0(1) built with Visual Studio .NET 2003 are not supported.
Applications using C++ CIL 8.0(1) built with Visual Studio .NET 2003 are not supported.
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 is more
straightforward for C++ developers who are not experienced COM programmers, and provides faster
code execution.
developers. It provides the same interface methods and events as the COM interface for C++, but is more
straightforward for C++ developers who are not experienced COM programmers, and provides 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 CTI OS Toolkit\Win32 CIL\Libs directory.
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 CTI OS Toolkit\Win32 CIL\Libs directory.
Header Files and Libraries
The header files you most likely require are all included in the main CIL header file, CIL.h, which you
would include in your application.
would include in your application.
#include <Cil.h>
To link your application code with the CIL for C++, you require the following C++ static libraries:
•
ConnectionLibSpd.lib. This library contains the connection-layer services for CIL.
•
ServiceLibSpd.lib. This library contains the service-layer services for CIL.
•
SessionLib.lib. This library contains the object-interface services for CIL.
•
UtilLibSpd.lib. This library contains helper classes for CIL.
•
ArgumentsLibSpd.lib. This library contains the Arguments data structure for CIL.
•
SilentMonitorLib.lib. This library contains all the services required to establish and control silent
monitor sessions.
monitor sessions.