Results 1 to 1 of 1

Thread: Connection to dbf

  1. #1
    Join Date
    Apr 2009
    Posts
    206
    Thanks
    34
    Thanked 2 Times in 2 Posts

    Default Connection to dbf

    Hello friends,

    I try to connect to dbf files using a connectionsstring like this

    Qt Code:
    1. QString dbfFilePath=QCoreApplication::applicationDirPath()+"/test.dbf";
    2. QString dsn = QString("DRIVER={Microsoft dBASE Driver (*.dbf)};DriverId=277;DBQ=%1").
    3. arg(dbfFilePath);
    4. db.setDatabaseName(dsn);
    5. if(!db.open())
    6. {
    7. //not successful
    8. }
    To copy to clipboard, switch view to plain text mode 

    but it fails the pendant with excelfiles runs witout problem

    Do you have experience in connecting to dbf files...?
    Last edited by codeman; 28th March 2010 at 20:10.

Similar Threads

  1. Port connection
    By bindushree in forum Qt Programming
    Replies: 1
    Last Post: 14th July 2009, 05:24
  2. Sql, dupicate connection
    By giusepped in forum Qt Programming
    Replies: 8
    Last Post: 2nd November 2008, 15:34
  3. Signal connection
    By Lele in forum Qt Programming
    Replies: 1
    Last Post: 13th November 2007, 11:29
  4. Connection with MS SQL
    By manish_pesit in forum Qt Programming
    Replies: 4
    Last Post: 13th September 2006, 07:47
  5. connection
    By mickey in forum Qt Programming
    Replies: 4
    Last Post: 20th July 2006, 20:25

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.