about VC+MySQL problem:)

about VC+MySQL problem:)

i install mysql odbc V5.0 driver
i need to ADO Connect MYSQL DB;

code:
_ConnectionPtr m_CMConnect;
::CoInitialize(NULL);
m_CMConnect.CreateInstance(__uuidof(Connection));
m_CMConnect->Open("Provider=MySQL;server=localhost;DataBase=test;port=3306;uid=root;pwd=","","",-1);


but Program run error.....

how to Ado Connect MYSQL DB;

thank:)

[455 byte] By [rxg] at [2007-12-26]
# 1

Hello

Re: about VC+MySQL problem:)

Such questions are outside the scope of this forum - for the scope of the VC General forum please look at: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=19445&SiteID=1

For such issues please use the newsgroups at http://msdn.microsoft.com/newsgroups.

OTP

Thanks

DamienWatkins-MSFT at 2007-9-4 > top of Msdn Tech,Visual C++,Visual C++ General...