Article ID: 129772 - Last Review: November 21, 2006 - Revision: 2.1

FIX: "Attempt to load required component ODBC32.DLL failed"

This article was previously published under Q129772
Expand all | Collapse all

SYMPTOMS

The following error occurs when trying to access an ODBC data source from a 32-bit application under Win32s:
Attempt to load required component ODBC32.DLL failed.

CAUSE

There are two main causes for this:

  • The ODBC components weren't installed because the ODBC setup program wasn't executed from the WIN32S\ODBC directory of the Visual C++ version 2.0 or 2.1 CD.
  • The \WIN32S\ODBC directory on the Visual C++ version 2.1 CD contains an incorrect version of the ODBC32.DLL file (the thunking driver manager). The incorrect version does not load under Win32s.

RESOLUTION

Ensure that the ODBC setup program from the WIN32S\ODBC directory has been executed.

Additionally, after installing from the Visual C++ version 2.1 CD, you'll need to copy the ODBC3216.DLL file located in the WIN32S\ODBC directory (this is the correct thunking ODBC driver manager for Win32s) to the WINDOWS\SYSTEM directory and rename it to ODBC32.DLL to replace the incorrect ODBC32.DLL.

STATUS

Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This problem was corrected in Microsoft Visual C++, 32-bit Edition, versions 2.2.

APPLIES TO
  • Microsoft Foundation Class Library 4.2, when used with:
    • Microsoft Visual C++ 2.0 Professional Edition
    • Microsoft Visual C++ 2.1
Keywords: 
kbbug kbdatabase kbfix kbsetup KB129772
Retired KB ArticleRetired KB Content Disclaimer
This article was written about products for which Microsoft no longer offers support. Therefore, this article is offered "as is" and will no longer be updated.
 

Article Translations