Results 1 to 19 of 19

Thread: odbc/connection problem

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2008
    Posts
    33
    Thanks
    1
    Thanked 2 Times in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default odbc/connection problem

    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...
    Last edited by triperzz; 18th January 2008 at 15:07.

Similar Threads

  1. Tricky problem with ARGB widget / UpdateLayeredWindow
    By nooky59 in forum Qt Programming
    Replies: 3
    Last Post: 21st February 2008, 10:35
  2. [QMYSQL] connection problem
    By chaos_theory in forum Installation and Deployment
    Replies: 5
    Last Post: 2nd July 2007, 09:52
  3. Grid Layout Problem
    By Seema Rao in forum Qt Programming
    Replies: 2
    Last Post: 4th May 2006, 12:45
  4. fftw problem
    By lordy in forum General Programming
    Replies: 1
    Last Post: 16th March 2006, 21:36
  5. Replies: 16
    Last Post: 7th March 2006, 15:57

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.