about VC+MySQL problem:)

Please support our C advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Jul 2006
Posts: 14
Reputation: rxgmoral is an unknown quantity at this point 
Solved Threads: 0
rxgmoral rxgmoral is offline Offline
Newbie Poster

about VC+MySQL problem:)

 
0
  #1
Nov 19th, 2006
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
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C Forum


Views: 1006 | Replies: 0
Thread Tools Search this Thread



Tag cloud for C
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC