系统文件comdef.h和Excel.h中,同时包含了Font与Pictures结构的定义,导致重复定义,如何避免啊
旧代码从VC6.0升级到VC2005,原来在VC6中正确,但到vc2005中编译时:
提示错误如下:
1>正在编译...
1>excel.cpp
1> Compiling MFC header files in release mode.
1>e:\arx(2005)\map\excel.h(1694) : error C2011: “Font”: “struct”类型重定义
1> c:\program files\microsoft visual studio 8\vc\include\comdef.h(310) : 参见“Font”的声明
1>e:\arx(2005)\map\excel.h(6659) : error C2011: “Picture”: “struct”类型重定义
1> c:\program files\microsoft visual studio 8\vc\include\comdef.h(324) : 参见“Picture”的声明
我认为是在系统文件comdef.h和Excel.h中,同时包含了Font与Pictures结构的定义,导致重复定义,检查能发现其有两处定义,
请教如何不会干扰或处理,如何避免啊