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.
精彩评论