Previous Thread

8/7/2006 1:57:02 AM    About registering a 64-bit ODBC driver from a 32-bit application
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.



8/8/2006 3:20:15 AM    RE: About registering a 64-bit ODBC driver from a 32-bit application
Hi, 
 
You might have to make 32bit and 64bit setup seperately. Because a 32bit 
 
process will not be able to access the 64bit registry and System32 folder. 
 
They are mapped to keys under Wow6432Node and SysWow64 folder. 
 
Kevin Yu 
 
Microsoft Online Community Support 
 
================================================== 
 
Get notification to my posts through email? Please refer to 
 
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif 
 
ications. 
 
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues 
 
where an initial response from the community or a Microsoft Support 
 
Engineer within 1 business day is acceptable. Please note that each follow 
 
up response may take approximately 2 business days as the support 
 
professional working with you may need further investigation to reach the 
 
most efficient resolution. The offering is not appropriate for situations 
 
that require urgent, real-time or phone-based interactions or complex 
 
project analysis and dump analysis issues. Issues of this nature are best 
 
handled working with a dedicated Microsoft Support Engineer by contacting 
 
Microsoft Customer Support Services (CSS) at 
 
http://msdn.microsoft.com/subscriptions/support/default.aspx. 
 
================================================== 
 
(This posting is provided "AS IS", with no warranties, and confers no 
 
rights.)