Adding MySql.Data.dll to Qt C++?
How do I add a MySql.Data.dll
file to a Qt C++ project开发者_如何学JAVA?
For QT, check out QSQL instead to connect to a database.
Or use the C++/C connectors:
- For C++: MySQL++
- For C: MySQL C API
Judging from the naming of the DLL and a little searching, I suspect that it is a .NET assembly, not a regular win32 dll. Unless you have a good reason to do so, you shouldn't try to use a .NET assembly in a native C++ application. It can be done, but it's messy.
Qt has an SQL module which should be sufficient in 99% of the cases. If you have questions about how to use it (e.g. connecting to a database, doing queries etc.), ask them as separate, specific questions.
精彩评论