Dear Sir/Madam:
Please let me ask you if I can register a 64-bit ODBC driver from a 32-bit
application.
On 64-bit Windows, I want to have my 32-bit setup program
register/deregister both 32-bit and 64-bit ODBC drivers with the same driver
name. Likewise, I want to have my 32-bit program create/delete ODBC data
sources for both 32-bit and 64-bit applications with the same DSN and
settings. My ODBC drivers are installed as follows:
<InstallDir>\bin\MyODBCDriver.dll (32-bit)
<InstallDir>\bin\MyODBCDriver64.dll (64-bit)
Is it possible to do that using the standard API function
SQLInstallDriverEx()/SQLRemoveDriver() or SQLConfigDataSource()? If yes, how?
If possible, I want to avoid building and calling a 64-bit setup program that
does almost the same thing as the 32-bit one. I want to have one 32-bit
program do everything. I couldn't find a MSDN document that describes how to
register a 64-bit driver and create a 64-bit data source.
Thanks in advance.
|