#import "d:\program files\common files\system\ado\msado15.dll" no_namespace , rename("EOF" , "adoEOF")
解决方案 »
- 如何让弹出的dialog不在windows任务栏上出现
- 请问用API时,怎么捕捉一个DRAWITEMSTRUCT按钮的双击事件呢?
- 请问在哪里能看到我使用的VC6.0是什么版本?标准版、企业板等?还有,我打了VC6.0的补丁,在哪里能看到我已经成功安装了补丁?
- 用什么工具查看exe所需的dll?
- dll 如何取得当前路径? dll 和 exe 不在同个目录下~
- 谁用过iphlpapi.dll的进来帮个忙啊!
- 怎么给 Visual SourceSafe 写插件?
- 救命!在98 上 运行 regsvr32 xxxxxx.dll 失败,返回 0x80070078 ,不知道为什么! 100分奉送!
- 如何在对话框上创建一个ScrollView?
- 响应回车键的是那一个消息.在View类里还是在MainFrame里.
- ICQ 如何设置为不随电脑启动而启动?
- 我是一个COM新手,我想问一个也许是很可笑的问题
我建了一个MFC的DLL,就加入了#import那句,别的什么都没做,编译就出现下面错误:
f:\program files\microsoft visual studio\call\debug\msado15.tlh(143) : error C2011: 'LockTypeEnum' : 'enum' type redefinition
f:\program files\microsoft visual studio\call\debug\msado15.tlh(184) : error C2011: 'DataTypeEnum' : 'enum' type redefinition
f:\program files\microsoft visual studio\call\debug\msado15.tlh(228) : error C2011: 'FieldAttributeEnum' : 'enum' type redefinition
f:\program files\microsoft visual studio\call\debug\msado15.tlh(245) : error C2011: 'EditModeEnum' : 'enum' type redefinition
f:\program files\microsoft visual studio\call\debug\msado15.tlh(253) : error C2011: 'RecordStatusEnum' : 'enum' type redefinition
f:\program files\microsoft visual studio\call\debug\msado15.tlh(432) : error C2011: 'ParameterDirectionEnum' : 'enum' type redefinition
Error executing cl.exe.call.dll - 6 error(s), 0 warning(s)
rename("EOF" , "adoEOF") , rename("LockTypeEnum" , "adoLockTypeEnum) .....
当你使用 #import时,这些头文件是不需要的
找了半天还是不明白和什么文件发生了冲突。