4
AltiAgent ActiveX Programmer’s Guide
5.
In the
Add Member Variable
dialog, create a member variable named
m_altictrl
.
6.
Click
OK
to add it to the class.
m_altictrl
is now a member of
CAltiCtrl
.
Now, VC has created a member in class
CExampleVcDlg
which can be used as a general object.
AltiAgent ActiveX Control API Reference
StartAltiCtrl
Description
Start AltiCtrl on the client. This is the first step to use this AltiCtrl.
VC++ Syntax
BOOL StartAltiCtrl()
VB++ Syntax
object.StartAltiCtrl()
Return type
BOOL - TRUE if connect to AltiAgent successfully; otherwise FALSE.
Remark
This function is the key of using AltiCtrl. Client cannot call the method or get any event from
AltiAgent if this function call fails.
VC++ Example
BOOL bstart= m_altictrl.StartAltiCtrl();
VB Example
Dim bstart as bool
bstart = AltiCtrl1.StartAltiCtrl()
AltiCtrl Event
CallNotify
Description
When AltiView/AltiAgent 5.0 receives a call event from AltiServ, AltiCtrl will send the event to
your application, each call will have an unique session ID, each call may several events with its
unique session ID.
Syntax
OnCallNotifyXXXXX (long ulSessionID, short uStatus, BSTR
szCallerID, BSTR szCallerName, BSTR szCallDNIS, BSTR szWorkgroup,
BSTR pszDateTime, BSTR pszDuration)