My Sql Connectiom
-
-
Hi All I need to connected Mysql through mfc code.I have found article which is very good.They all are advice to insttal drive ODBC.I do it and it's working.But i have a question about that,can i make connection without any external driver. Plz advice me
I am not overly familiar with ODBC but I have had to write applications that need to communicate with a database. Check out the MySQL C API http://dev.mysql.com/doc/refman/5.0/en/c.html[^] the C++ wrapper for the MySQL C API http://tangentsoft.net/mysql++/[^] Also if you are communicating with a web server database consider writing a server side web script to handle database queries and communicate with it with. URLDownloadToCacheFile http://msdn.microsoft.com/en-us/library/ms775122(VS.85).aspx[^] This might or might not be reasonable depending on what you are trying to accomplish, but it is probably the quickest and easiest way to get the job done for basic web database queries.
Chris Smith
-
I am not overly familiar with ODBC but I have had to write applications that need to communicate with a database. Check out the MySQL C API http://dev.mysql.com/doc/refman/5.0/en/c.html[^] the C++ wrapper for the MySQL C API http://tangentsoft.net/mysql++/[^] Also if you are communicating with a web server database consider writing a server side web script to handle database queries and communicate with it with. URLDownloadToCacheFile http://msdn.microsoft.com/en-us/library/ms775122(VS.85).aspx[^] This might or might not be reasonable depending on what you are trying to accomplish, but it is probably the quickest and easiest way to get the job done for basic web database queries.
Chris Smith
-
Hi All I need to connected Mysql through mfc code.I have found article which is very good.They all are advice to insttal drive ODBC.I do it and it's working.But i have a question about that,can i make connection without any external driver. Plz advice me
These are the available connectors[^]. As you see, there is a C++ connector - but that uses classes that MySQL provide, not the MFC classes. I think that's the closest to what you're asking for.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p