求助:MFC中加入excel总出错
在引入excel后(此处用的是office2003,加入的类是excel.cpp,excel.h)
在excel.h中定义
#if !defined _HEAD_FILE_EXCEL9_
#define _HEAD_FILE_EXCEL9_
(代码没变)
#endif
在使用excel的类中也加入了excel.h的头文件,为什么运行时总出错?
...\excel.h : error C2011: 'Parameters' :'struct' type redefinition
...\excel.h : error C2011: 'Error' :'struct' type redefinition
...\excel.h : error C2011: 'Errors' :'struct' type redefinition
困惑了好久了 ,求大侠帮忙解决
如果还不能解决,请告诉我一下,如何将access中某一个表的数据输出到 txt 文本中,不胜感激呀
[最优解释]
如何将access中某一个表的数据输出到 txt 文本中
ADO连接MDB
JETSQL:
SELECT * INTO [TEXT;DATABASE=R:\TEMP].[123.TXT] FROM TT
[其他解释]
你的 excel.h 中有重复的东西,检查一下。
[其他解释]
redefinition 顾名思义结构体被重复定义了。
[其他解释]
谢 谢 了