1、warning C4146: unary minus operator applied to unsigned type, result still unsigned

来源:百度知道 编辑:UC知道 时间:2024/06/17 07:26:32
Warning: warning C4146: unary minus operator applied to unsigned type, result still unsigned
1、error C2146: syntax error : missing ';' before identifier 'all'
2、 error C2501: 'rebuild' : missing storage-class or type specifiers
3、 fatal error C1004: unexpected end of file found
我在使用VC++编写数据库方面的程序时,引用了“#import "C:\Program Files\Common Files\System\ado\msado15.dll" no_namespace rename("EOF","adoEOF")rename("BOF","adoBOF")”之后,就出现了上述的问题,希望哪位高手指点一二,谢谢了!

warning C4146: unary minus operator applied to unsigned type, result still unsigned
微软建议不要去管这个警告

在stdafx.h中
将#import "..\program files\common files\system\ado\msado15.dll" no_namespace rename("EOF","adoEOF")
添加到#endif // _AFX_NO_AFXCMN_SUPPORT
试试