头文件
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)
{
Original: https://www.cnblogs.com/Blackie/archive/2011/01/21/1941173.html
Author: Blackie
Title: 添加COM类型库ACTIVEX接口
原创文章受到原创版权保护。转载请注明出处:https://www.johngo689.com/685985/
转载文章受原作者版权保护。转载请注明原作者出处!