i cant connect to database....
i need to copy this .dll first even if i use -static in configure and build sub-src:
(if i copy this .dlls my program runs and work properly my problem is the "qsqlodbc4.dll")
QTCore4.dll
QTSql4.dll
plus
qsqlodbc4.dll with the folders from its destination.. ex: qsqlodbc4.dll is in C:\QT\4.3.2\plugin\drivers i need to copy the folders too (even w/out the other files, i only need the folders) then put the qsqlodbc4.dll in the directory.. y is it like that??
note: " if i erase one of these .dll's my connection fails, if i remove the qsqlodbc4.dll in its path even if i dont erase it, my connection will fails"
i use this connection
QSqlDatabase db = QSqlDatabaseName("QODBC");
etc..
how to make an executable file that connects to the database that dont require these 3 .dll's ?
note: "I already use "-static" the exe runs but the connection fails"
do i need to use -plugin-sql-odbc? or just include it in my codes in the program... if yes how?
thanks...


Reply With Quote

"You can put the plugin in sqldrivers subdirectory in the directory with your application" 

Bookmarks