我正在尝试使用 CTI Toolkit 4.03 在 Visual Studio 2008 中构建 CTI 连接器解决方案。我有一个错误
Error 1 error C2259: 'ATL::CComObject<Base>' : cannot instantiate abstract class c:\program files (x86)\microsoft visual studio 9.0\vc\atlmfc\include\atlcom.h 1801 while compiling
我的代码是
#include "stdafx.h"
#include "MyAdapterBase.h"
STDMETHODIMP CMyAdapterBase::GetAdapterName(BSTR* bsName)
{
bsName = SysAllocString(L"My Sample CTI Adapter");
return S_OK;
}
STDMETHODIMP CMyAdapterBase::GetAdapterVersion(BSTR bsName)
{
bsName = SysAllocString(L"1.0 Candidate 2");
return S_OK;
}
STDMETHODIMP CMyAdapterBase::UIAction(BSTR message){
{
return S_OK;
}
void CMyAdapterBase::SendUIRefreshEvent(_bstr_t xml)
{
CCTILogger::Log(LOGLEVEL_HIGH,"Sending XML (len %d): %s",xml.length(),
(wchar_t)xml);
_ISalesforceCTIAdapterEvents_UIRefresh(xml);
}