如何使用ADO连接Mysql数据库

来源:互联网 发布:动态添加js代码 编辑:程序博客网 时间:2024/05/16 06:06
//引入ADO
#import "c:\program files\common files\system\ado\msado15.dll" \
no_namespace \

rename ("EOF", "adoEOF")





如果你是用MFC,则首先在stdafx.h中加上:
#import "C:\\Program Files\\Common Files\\system\\ado\\msado15.dll" no_namespace \
rename("EOF","adoEOF")
即可用。如果要求稳妥,可在stdafx.h中加上
#include <comdef.h>
在CXXApp::InitInstance中加上
::AfxOleInit();