![]() |
【转帖】设置ado出现的问题 请指教
设置ado出现的问题 请指教
www.dimcax.com 设置ado出现的问题 请指教 我按照提示那样设置ado,出现一下错误: --------------------configuration: dbado - win32 debug-------------------- compiling... stdafx.cpp compiling mfc header files in release mode. e:\程序\arx\dbado\debug\msado15.tlh(407) : warning c4146: unary minus operator applied to unsigned type, result still unsigned e:\程序\arx\dbado\debug\msado15.tlh(2663) : error c2059: syntax error : 'constant' e:\程序\arx\dbado\debug\msado15.tlh(2663) : error c2238: unexpected token(s) preceding ';' error executing cl.exe. appdbado.arx - 2 error(s), 1 warning(s) 请问是什么原因????? winmain里面设置afxoleinit(); stdafx.h 设置: #import "c:\program files\common files\system\ado\msado15.dll"\ rename("eof","adoeof") 请大家分析一下? 我用的是wizard 和我遇到的问题一样!我发现是和arx的一个头文件发生语法冲突: 就是这个#include "acui.h" 请问大伙如何解决该问题,急待!!!! 我参照置顶帖子改如下: #import "c:\program files\common files\system\ado\msado15.dll" no_namespace rename ("eof", "adoeof") \ rename ("locktypeenum", "adolocktypeenum") \ rename ("datatypeenum", "adodatatypeenum") \ rename ("fieldattributeenum", "adofieldattributeenum") \ rename ("editmodeenum", "adoeditmodeenum") \ rename ("recordstatusenum", "adorecordstatusenum") \ rename ("parameterdirectionenum", "adoparameterdirectionenum") \ rename("eos","adoeos") 我又遇到了难题: 我想用ado新建一空数据库,听说用到: #import "c:\program files\common files\system\ado\msadox.dll" 但参照网上一些方法都不行,是不是因为有arx的缘故,请指教!!!! |
所有的时间均为北京时间。 现在的时间是 03:40 PM. |