新人求助关于组件接口调用的错误
使用VS2010 建立了MFC,然后用类向导调入了一个类型库,是个DLL的组件接口
然后我在cpp中include了生产的.h文件,编译
就提示:
1>d:\openfristcard\openfristcard\release\taxcardx.tlh(414): error C2556: “_bstr_t IGoldTax::GetInfo(void)”: 重载函数与“HRESULT IGoldTax::GetInfo(void)”只是在返回类型上不同
1> d:\\openfristcard\openfristcard\release\taxcardx.tlh(210) : 参见“IGoldTax::GetInfo”的声明
1>d:\openfristcard\openfristcard\release\taxcardx.tlh(414): error C2371: “IGoldTax::GetInfo”: 重定义;不同的基类型
1> d:\openfristcard\openfristcard\release\taxcardx.tlh(210) : 参见“IGoldTax::GetInfo”的声明
1>d:\openfristcard\openfristcard\release\taxcardx.tlh(210): error C3803: “_bstr_t IGoldTax::Info”: 属性的类型与它的访问器之一“HRESULT IGoldTax::GetInfo(void)”不兼容
1> d:\openfristcard\openfristcard\release\taxcardx.tlh(202) : 参见“IGoldTax::Info”的声明
1> d:\openfristcard\openfristcard\release\taxcardx.tlh(210) : 参见“IGoldTax::GetInfo”的声明
1>d:\openfristcard\openfristcard\release\taxcardx.tli(919): error C2556: “_bstr_t IGoldTax::GetInfo(void)”: 重载函数与“HRESULT IGoldTax::GetInfo(void)”只是在返回类型上不同
1> d:\openfristcard\openfristcard\release\taxcardx.tlh(210) : 参见“IGoldTax::GetInfo”的声明
1>d:\openfristcard\openfristcard\release\taxcardx.tli(919): error C2371: “IGoldTax::GetInfo”: 重定义;不同的基类型
1> d:\openfristcard\openfristcard\release\taxcardx.tlh(210) : 参见“IGoldTax::GetInfo”的声明
1>d:\openfristcard\openfristcard\release\taxcardx.tli(919): error C2084: 函数“HRESULT IGoldTax::GetInfo(void)”已有主体
1> d:\openfristcard\openfristcard\release\taxcardx.tlh(210) : 参见“GetInfo”的前一个定义
-----------------------------------------------------
让我很疑惑,因为是调用的组件接口,似乎改也没法改,求各位大牛帮助。。第一次发帖什么都不懂