Qinglan
2003-07-19 09:19:06 UTC
I try to write a MFC programe use TAPI3, and I just write
only the initialize code in the OnInitDialog()
function,but the compiler give me wrong:
MyTest.obj : error LNK2001: unresolved external symbol
_CLSID_TAPI
MyTest.obj : error LNK2001: unresolved external symbol
_IID_ITTAPI
the code is:
if ( FAILED( CoInitialize(NULL) ) )
{
return FALSE;
}
HRESULT hr;
hr = CoCreateInstance(
CLSID_TAPI,
NULL,
CLSCTX_INPROC_SERVER,
IID_ITTAPI,
(LPVOID *)&m_pTapi
);
Thanks, and sorry for my poor English.
Qinglan
only the initialize code in the OnInitDialog()
function,but the compiler give me wrong:
MyTest.obj : error LNK2001: unresolved external symbol
_CLSID_TAPI
MyTest.obj : error LNK2001: unresolved external symbol
_IID_ITTAPI
the code is:
if ( FAILED( CoInitialize(NULL) ) )
{
return FALSE;
}
HRESULT hr;
hr = CoCreateInstance(
CLSID_TAPI,
NULL,
CLSCTX_INPROC_SERVER,
IID_ITTAPI,
(LPVOID *)&m_pTapi
);
Thanks, and sorry for my poor English.
Qinglan