14.01.2013 Views

IBM Informix Developer's Handbook - IBM Redbooks

IBM Informix Developer's Handbook - IBM Redbooks

IBM Informix Developer's Handbook - IBM Redbooks

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

happen that the 32-bit provider is registered as a 64-bit provider (or vice versa)<br />

and the Windows operating system will fail to find and load the provider.<br />

You can verify that the provider library is registered correctly by examining the<br />

Windows registry. Example 7-20 shows the registry entry for 32-bit and 64-bit<br />

<strong>Informix</strong> OLE DB Provider. Remember that the name of the <strong>Informix</strong> provider is<br />

ifxoledbc.<br />

Example 7-20 <strong>Informix</strong> OLE DB registry keys<br />

C:\work>c:\windows\syswow64\reg query<br />

"HKEY_CLASSES_ROOT\CLSID\{A6D00422-FD6C-11D0-8043-00A0C90F1C59}\InprocServer32"<br />

HKEY_CLASSES_ROOT\CLSID\{A6D00422-FD6C-11D0-8043-00A0C90F1C59}\InprocServer32<br />

(Default) REG_SZ C:\Program Files<br />

(x86)\<strong>IBM</strong>\<strong>Informix</strong>\Client-SDK\bin\ifxoledbc.dll<br />

ThreadingModel REG_SZ Both<br />

C:\work>c:\windows\system32\reg query<br />

"HKEY_CLASSES_ROOT\CLSID\{A6D00422-FD6C-11D0-8043-00A0C90F1C59}\InprocServer32"<br />

HKEY_CLASSES_ROOT\CLSID\{A6D00422-FD6C-11D0-8043-00A0C90F1C59}\InprocServer32<br />

(Default) REG_SZ C:\Program<br />

Files\<strong>IBM</strong>\<strong>Informix</strong>\Client-SDK\bin\ifxoledbc.dll<br />

ThreadingModel REG_SZ Both<br />

C:\work><br />

Failed to load the Ifxoledbc.dll<br />

Here, we explain the reason and the solution for a “Failed to load the<br />

Ifxoledbc.dll” error.<br />

Reason<br />

The application fails to load <strong>Informix</strong> OLE DB Provider or one of its libraries.<br />

Solution<br />

The value of INFORMIXDIR (as a environment variable or in the registry) should<br />

be the directory where Client SDK is installed. Ensure that the environment<br />

variable PATH contains the %INFORMIXDIR%\bin directory. For example:<br />

PATH=C:\Program Files\<strong>IBM</strong>\<strong>Informix</strong>\Client-SDK\bin;%PATH%<br />

When an application loads <strong>Informix</strong> OLE DB Provider, Client SDK libraries that<br />

the provider needs for communication and registry access are loaded from the<br />

directory that is used in the registration process.<br />

246 <strong>IBM</strong> <strong>Informix</strong> Developer’s <strong>Handbook</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!