RT,我按照网上说的添加了Excel的类库,类库的截图如下,但是编译出好多错误!
1>e:\tools\debug\excel.tlh(550): error C3121: 无法更改“IFilter”类的 GUID
1> c:\program files\microsoft sdks\windows\v7.0a\include\filter.h(183) : 参见“IFilter”的声明
1>e:\tools\debug\excel.tlh(1471): error C2371: “FontPtr”: 重定义;不同的基类型
1> d:\vs100\vc\include\comdef.h(314) : 参见“FontPtr”的声明
1>e:\tools\debug\excel.tlh(1549): error C2786: “BOOL (HDC,int,int,int,int)”: __uuidof 的操作数无效
1>e:\tools\debug\excel.tlh(1549): error C2923: “_com_IIID”: 对于参数“_Interface”,“Rectangle”不是有效的 模板 类型变量
1> c:\program files\microsoft sdks\windows\v7.0a\include\wingdi.h(3989) : 参见“Rectangle”的声明
1>e:\tools\debug\excel.tlh(1549): error C3203: “_com_IIID”: 未专用化的类 模板 不能用作 模板 变量,该变量属于 模板 参数“_IIID”,应为 real 类型
1>e:\tools\debug\excel.tlh(1549): error C2955: “_com_IIID”: 使用类 模板 需要 模板 参数列表
1> d:\vs100\vc\include\comip.h(40) : 参见“_com_IIID”的声明
..