Menu
Simba Technologies
Simba Technologies

SimbaEngine X SDK 10.1.15
Build a C++ ODBC Driver in 5 Days (Windows)

Bitness and the Windows Registry

32-bit applications can run on 64-bit machines, but they cannot use 64-bit ODBC drivers. A 64-bit application must use a 64-bit ODBC driver, and a 32-bit application must use a 32-bit ODBC driver.

On machines running 64-bit Windows operating systems, system-wide information about 64-bit ODBC drivers is stored in HKEY_LOCAL_MACHINE/SOFTWARE/ODBC, and system-wide information about 32-bit ODBC drivers is stored in HKEY_LOCAL_MACHINE/ SOFTWARE/WOW6432NODE/ODBC.

On machines running 32-bit Windows operating systems, system-wide information about ODBC drivers is stored in HKEY_LOCAL_MACHINE/SOFTWARE/ODBC. This is the same location as 64-bit applications running on 64-bit machines.

Note:

32-bit Windows operating systems cannot run 64-bit applications or drivers.

The ODBC.INI Key

The ODBC Data Source Administrator uses information in the following key to connect a driver to a database:

  • HKEY_LOCAL_MACHINE/SOFTWARE/ ODBC/ODBC.INI for 64-bit applications on 64-bit machines, or 32-bit applications on 32-bit machines.
  • HKEY_LOCAL_MACHINE/SOFTWARE/WOW6432NODE/ODBC/ ODBC.INI for 32-bit applications on 64-bit machines.

This key contains a key for each Data Source Name (DSN). For more information about this key, see https://msdn.microsoft.com/en-us/library/ms715391(v=vs.85).aspx.

The ODBC Data Sources key

The ODBC.INI key also contains a key named ODBC Data Sources that lists the data sources. The values for the data sources must match the name of each DSN key. For more information about this key, see https://msdn.microsoft.com/en-us/library/ms709335(v=vs.85).aspx.

For more information on Windows Registry entries for data sources, see https://msdn.microsoft.com/en-us/library/ms712603%28v=vs.85%29.aspx.

The ODBCINST.INI Key

The ODBC Data Source Administrator uses information in the following key to define each driver's name and setup location:

  • HKEY_LOCAL_MACHINE/SOFTWARE/ODBC/ODBCINST.INI for 64-bit applications on 64-bit machines, or 32-bit applications on 32-bit machines
  • HKEY_LOCAL_MACHINE/SOFTWARE/WOW6432NODE/ODBC/ODBCINST.INI for 32-bit applications on 64-bit machines

This key contains a driver specification key for each driver. For more information about driver specification keys, see https://msdn.microsoft.com/en-us/library/ms715391(v=vs.85).aspx.

The ODBC Drivers Key

The ODBCINST.INI key also contains a key named ODBC Drivers that lists the installed drivers.

For more information about this key, see https://msdn.microsoft.com/en-us/library/ms714818%28v=vs.85%29.aspx.