[Qt-interest] Qt ODBC driver with 64 bits MSVC

Andre Somers andre at familiesomers.nl
Tue May 11 14:15:25 CEST 2010


On 11-5-2010 14:07, Wm. G. Urquhart wrote:
> On 11/05/2010 09:21, Andre Somers wrote:
>    
>> Hi,
>>
>> I am trying to get the Qt ODBC driver working with my 64 bits MSVC
>> compiled Qt. The driver compiled just fine, but it does not seem to
>> work. The driver is loaded by the Qt (QSqlDatabase::drivers() returns
>> the name of the driver), but it fails to connect to a database where the
>> same code compiled in 32 bits mode on a 32 bits Qt works just fine. I
>> don't get a helpful error message either.
>>
>> I must be missing something obvious, but I really can not find it.
>>      
> Hi.
>
> I don't know if this helps or not but you need to create your ODBC Data
> source using odbcad32.exe found here
>
> C:\Windows\SysWOW64\odbcad32.exe (On Vista x64)
>
> I had the same issue but this works for me.
>
> HTH
>
>    
The problem is not creating a connection string or setting up a data 
source. At the same machine, using a 32 bits version of my application 
works perfectly. I don't want to use static data sources, but work on 
files. I am creating my ODBC connection strings dynamically for that.
Thanks though.

André




More information about the Qt-interest-old mailing list