Cisco Cisco Computer Telephony Integration Option 9.0 开发者指南

下载
页码 546
 
Chapter 4      Building Your Application
Using The CTI OS ActiveX Controls
4-12
Cisco ICM Software CTI OS Developer’s Guide Release 6.0(0)
Figure 4-4
CTI OS References Needed for Visual Basic COM Programming
' VB sample for a simple CTIOS phone
' needs references to CTIOSCLIENTLib CTIOSSESSIONRESOLVERLib and 
CTIOSARGUMENTSLib
'
' dim CTIOS session interface
' the session interface handles connect, setagent and others
Dim WithEvents m_session As CTIOSCLIENTLib.Session
' the sessionresolver is needed to retrieve the session pointer
Dim m_sessionresolver As CTIOSSESSIONRESOLVERLib.SessionResolver
Private Sub Form_Load()
    ' instantiate the sessionresolver
    Set m_sessionresolver = New 
CTIOSSESSIONRESOLVERLib.SessionResolver
    
    ' ActiveX controls use the session named "" - blank
    ' since the ActiveX controls do the connection and login,