winapi - Can i use a 32 Bit ODBC Driver for my 64 Bit app -


i have win32 application makes odbc-connections. connect using sqldriverconnect() displays dialog select data source. in x64-version dialog shows , offers 2 different 32 bit ms access drivers. when select 1 of these, in 32 bit version see open file dialog select .mdb file. in 64 bit version call sqldriverconnect() @ point returns -1.

sqlerror() returns: "[microsoft][odbc driver manager] data source name not found , no default driver specified"

is in general possible use 32 bit odbc driver 64-bit executable? why these driver shown? far can find there no 64 bit ms access obdc driver far. can do?

you absolutely cannot mix 32bit application , 64bit driver (or vice-versa).

basically, odbc driver is, typically, dll (windows) or shared object (linux...) loaded parent application.

all executables, dlls, etc share same process space must same bit'ness...


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -