D
d_blues
Unregistered / Unconfirmed
GUEST, unregistred user!
我在写一个COM的client端,用到Event Sink,所以使用了下述代码
HRESULT H323EventSink::InvokeEvent(DISPID id, TVariant *params)
{
switch(id)
{
case 1:
CallIncoming(params[0],params[1],params[2]);
break;
case 2:
CallCleared(params[0]);
break;
case 3:
UserInput(params[0],params[1]);
break;
default:
ShowMessage("We should't be here!");
}
return S_OK;
}
其中调用的函数在.h中的定义如下:
HRESULT __fastcall CallIncoming(long Connection, BSTR _srcNumber, BSTR _destNumber);
HRESULT __fastcall CallCleared(long connection);
HRESULT __fastcall UserInput(long connection, BSTR _userInput);
编译时报错如下:
[Linker Error] Unresolved external '__stdcall _com_util::ConvertBSTRToString(wchar_t *)' referenced from D:/WORKSPACE/IVR/H323EVENTSINK.OBJ
不知道该怎么解决,请指教,另外,有没有写关于Event Sink的文档,请高手推荐两份
HRESULT H323EventSink::InvokeEvent(DISPID id, TVariant *params)
{
switch(id)
{
case 1:
CallIncoming(params[0],params[1],params[2]);
break;
case 2:
CallCleared(params[0]);
break;
case 3:
UserInput(params[0],params[1]);
break;
default:
ShowMessage("We should't be here!");
}
return S_OK;
}
其中调用的函数在.h中的定义如下:
HRESULT __fastcall CallIncoming(long Connection, BSTR _srcNumber, BSTR _destNumber);
HRESULT __fastcall CallCleared(long connection);
HRESULT __fastcall UserInput(long connection, BSTR _userInput);
编译时报错如下:
[Linker Error] Unresolved external '__stdcall _com_util::ConvertBSTRToString(wchar_t *)' referenced from D:/WORKSPACE/IVR/H323EVENTSINK.OBJ
不知道该怎么解决,请指教,另外,有没有写关于Event Sink的文档,请高手推荐两份