开发者

Error importing msado15.dll

I'm trying to import msado15.dll into my c++ project but I get a bunch of errors like these:

 error C2018: unknown character '0x40' 
 error C2146: syntax error : missing ';' before identifier 'ÿÿ¸'
 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

Here's my include dir开发者_如何学JAVAective:

#include "C:\program files\common files\system\ado\msado15.dll" 


Use import rather than include.


you also need to rename EOF

#import "C:\program files\common files\system\ado\msado15.dll" rename("EOF", "EndOfFile")

Don't ask me why.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜