报如下错误:
program files\microsoft visual studio\myprojects\database\debug\msado15.tlh(409) : warning C4146: unary minus operator applied to unsigned type, result still unsigned
c:\program files\microsoft visual studio\myprojects\database\debug\msado15.tlh(1317) : error C2629: unexpected 'short ('
c:\program files\microsoft visual studio\myprojects\database\debug\msado15.tlh(1317) : error C2238: unexpected token(s) preceding ';'
c:\program files\microsoft visual studio\myprojects\database\stdafx.h(33) : error C2146: syntax error : missing ';' before identifier 'rename'
c:\program files\microsoft visual studio\myprojects\database\stdafx.h(33) : error C2501: 'no_namespace' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\myprojects\database\stdafx.h(33) : fatal error C1004: unexpected end of file found
Error executing cl.exe.
program files\microsoft visual studio\myprojects\database\debug\msado15.tlh(409) : warning C4146: unary minus operator applied to unsigned type, result still unsigned
c:\program files\microsoft visual studio\myprojects\database\debug\msado15.tlh(1317) : error C2629: unexpected 'short ('
c:\program files\microsoft visual studio\myprojects\database\debug\msado15.tlh(1317) : error C2238: unexpected token(s) preceding ';'
c:\program files\microsoft visual studio\myprojects\database\stdafx.h(33) : error C2146: syntax error : missing ';' before identifier 'rename'
c:\program files\microsoft visual studio\myprojects\database\stdafx.h(33) : error C2501: 'no_namespace' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\myprojects\database\stdafx.h(33) : fatal error C1004: unexpected end of file found
Error executing cl.exe.
解决方案 »
- 在VS2008下为什么没有Message Compiler(mc.exe)?
- winxp 复制文件,然后校验,校验结果每次都不同~
- 用wmp控件写的基于对话框的程序,在播放视频时只有声音没有图像。但直接用windows media player播放视频时,却是正常的.
- 关于API中回调函数的菜鸟问题
- 一个简单的问题(关于DECLARE_IUNKNOWN宏)
- sql是个Cstring,如何执行它?VC++,ADO
- 急问!CStringW为什么不能在VC6.0下识别
- 请教c下的fgetc(fp)函数功能在vc下如何实现?一天了,一个文件没读出来
- 怎么在mfc界面调用控制台的代码?
- 支持MFC的win32 console application断言失败
- 最后50 分毫不手软一个字送!!用什么软件能把一堆html变成一个chm而且最好能有查找功能?
- 高手们进来看看吧,哪位大哥能帮助小弟解个软件哦,呵呵,我真的很需要他!
第二个是什么错你得把tlh这一行贴上来才知道,
这一句话本身是没有错的,建议你重庄以下madc_tye.exe把
“#import "c:\program files\common files\system\ado\msado15.dll"
no_namespace rename("EOF","adoEOF")”
不能换行!
按照你的办法“#import "c:\program files\common files\system\ado\msado15.dll"
no_namespace rename("EOF","adoEOF")”
没有换行,仍旧报错:
c:\program files\microsoft visual studio\myprojects\database\debug\msado15.tlh(171) : error C2011: 'LockTypeEnum' : 'enum' type redefinition
c:\program files\microsoft visual studio\myprojects\database\debug\msado15.tlh(214) : error C2011: 'DataTypeEnum' : 'enum' type redefinition
c:\program files\microsoft visual studio\myprojects\database\debug\msado15.tlh(258) : error C2011: 'FieldAttributeEnum' : 'enum' type redefinition
c:\program files\microsoft visual studio\myprojects\database\debug\msado15.tlh(279) : error C2011: 'EditModeEnum' : 'enum' type redefinition
c:\program files\microsoft visual studio\myprojects\database\debug\msado15.tlh(287) : error C2011: 'RecordStatusEnum' : 'enum' type redefinition
c:\program files\microsoft visual studio\myprojects\database\debug\msado15.tlh(407) : warning C4146: unary minus operator applied to unsigned type, result still unsigned
c:\program files\microsoft visual studio\myprojects\database\debug\msado15.tlh(530) : error C2011: 'ParameterDirectionEnum' : 'enum' type redefinition
#import "c:\program files\common files\system\ado\msado15.dll" no_namespace rename("EOF","adoEOF")
good luck!
#import "C:\PROGRAM FILES\COMMON FILES\System\ado\MSJRO.DLL" no_namespace
#import "c:\program files\common files\system\ado\msado15.dll" rename_namespace("ADOCG") rename("EOS", "adoEOS") rename("EOF", "adoEOF")
using namespace ADOCG;
#include "icrsint.h"
这样试试