2010-12-05 80 views
0

我試圖導入MSADO15.DLL到我的C++項目,但我得到像這樣的一堆錯誤:錯誤導入MSADO15.DLL

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 

這裏是我的include指令:

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

回答

2

使用import而不是include

2

還需要重命名EOF

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

不要問我爲什麼。