编辑框内容无效
这是一个软电话系统的签入部分void CGuoTsapiDlg::OnButtonLogin()
{
m_TSAPICONNECTORCTRL1.SetAmsServerIP("192.168.0.126");
m_TSAPICONNECTORCTRL1.SetAgentID(m_AGENTID);
m_TSAPICONNECTORCTRL1.SetTsServerLinks("AVAYA#S8300#CSTA#VMAES52,ctiuser,Ctiuser@1");
m_TSAPICONNECTORCTRL1.SetAmsAgentType(0);
m_TSAPICONNECTORCTRL1.SetDeviceID(m_DEVICEID);
m_TSAPICONNECTORCTRL1.SetPassword(" ");
m_TSAPICONNECTORCTRL1.SetAmsSkills(" ");
m_TSAPICONNECTORCTRL1.SetCallCount(0);
m_TSAPICONNECTORCTRL1.SetCalledNumber(" ");
m_TSAPICONNECTORCTRL1.SetCallingNumber(" ");
//m_TSAPICONNECTORCTRL1.SetErrorMessage(m_TSAPICONNECTORCTRL1.GetErrorMessage());
int ret = m_TSAPICONNECTORCTRL1.AgentLogin(1,0);
if(ret == 0)
{
// 成功
AfxMessageBox("成功");
}else
{
// 失败
AfxMessageBox(m_TSAPICONNECTORCTRL1.GetErrorMessage());
}
// TODO: Add your control notification handler code here
}
在做签入操作时,控件报错,坐席工号无效
AgentID和m_AGENTID都是CString
哪位大哥帮小弟讲讲,谢谢