在vs2005项目使用typelib添加了excel 12的类,添加了这些类后编译时出现了很多错误,怎么解决?
_Application类的头文件是Application.h
但是当我在工程里添加 #include "Application.h" 后,编译时出现以下错误:
1>------ 已启动生成: 项目: ExcelOperator1, 配置: Debug Win32 ------
1>正在编译...
1>ExcelOperator1Dlg.cpp
1>f:\projects\数据库\exceloperator1\exceloperator1\debug\excel.tlh(1463) : error C2371: “FontPtr”: 重定义;不同的基类型
1> d:\program files\microsoft visual studio 8\vc\include\comdef.h(312) : 参见“FontPtr”的声明
1>f:\projects\数据库\exceloperator1\exceloperator1\debug\excel.tlh(1541) : error C2786: “BOOL (__stdcall *)(HDC,int,int,int,int)”: __uuidof 的操作数无效
1>f:\projects\数据库\exceloperator1\exceloperator1\debug\excel.tlh(1541) : error C2923: “_com_IIID”:“Rectangle”不是参数“_Interface”的有效 模板 类型变量
1> d:\program files\microsoft visual studio 8\vc\platformsdk\include\wingdi.h(3514) : 参见“Rectangle”的声明
........
请帮忙!!