开发者

Error importing msado15.dll

开发者 https://www.devze.com 2023-01-28 18:31 出处:网络
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\'

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

精彩评论

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