Connecting to a MySQL server using C++
问题 I'm attempting to connect to a MySQL server using C++ with the MySQL ODBC 5.1 Driver on Visual C++ 2008 Express Edition. I'm following these instructions from MSDN: SQLConnect SQLGetData SQLFetch The only difference is that I have to convert all the SQLCHAR to SQLWCHAR , to match the function params, hopefully that doesn't affect the connection string. Every time I connect I get SQL_ERROR as the return value. So I'm assuming there's something wrong with the connection string or the connection