接口的函数为
[id(1), helpstring("method GetTopo")] HRESULT GetTopo([in]int TopoType,[out,retval]BSTR* topo);
服务器(service)实现为:
STDMETHOD(GetTopo)(/*[in]*/int TopoType,/*[out,retval]*/BSTR* topo)
{
*topo = _com_util::ConvertStringToBSTR("hello"); }
客户端调用代码为;
::CoInitialize(NULL); 
// Check the return value, hr... HRESULT hr=S_OK;
INNMServer* pNNMSvr=NULL;
hr=::CoCreateInstance(CLSID_CoNNMServer,NULL,CLSCTX_ALL,
IID_INNMServer,(void**)&pNNMSvr);
BSTR topo;
if (SUCCEEDED(hr))
{
hr=pNNMSvr->GetTopo(1,&topo);
_com_error err(hr);
AfxMessageBox(err.ErrorMessage()); AfxMessageBox(_bstr_t(topo));
pNNMSvr->Release();
}但是BSTR topo并没有值,请问是哪儿出了问题了?