添加COM类型库ACTIVEX接口

头文件

public:
 STDMETHOD(GetEsamVersion)(BSTR* pVersion,int* nRet);

在项目.idl文件里添加

interface ITool : IDispatch
 {

  [id(9), helpstring("method GetEsamVersion")] HRESULT GetEsamVersion([in,out]BSTR* pVersion, [out,retval]int* nRet);
 };

cpp文件

STDMETHODIMP CTool::GetEsamVersion(BSTR* pVersion,int* nRet)
{

}

posted on 2011-01-21 15:11  Blackie  阅读(843)  评论(1编辑  收藏  举报

导航