FIX: ODBC SDK May Overwrite Latest Version of Msvcrt20.dll

Last reviewed: October 30, 1997
Article ID: Q138817
4.00 WINDOWS kbinterop kbbuglist

The information in this article applies to:

  • Standard, Professional, and Enterprise Editions of Microsoft Visual Basic, 16-bit and 32-bit, for Windows, version 4.0

SYMPTOMS

If Visual Basic 4.0 is already installed before you install the ODBC SDK, Visual Basic fails to start and gives this error message:

   The procedure entry point _adjust_fdiv could not be located in
   the dynamic link library Msvcrt20.dll

CAUSE

The ODBC SDK versions 2.10a and earlier fail to check versions on the file Msvcrt20.dll. It will blindly copy over any previously existing copy of the .dll file. In this case, the ODBC SDK is copying Msvcrt20.dll version 2.00.000 over the Msvcrt20.dll version 2.10.000 that comes with Visual Basic 4.0. Because compiled applications use Msvcrt20.dll (it is a dependency of Vb40032.dll), this problem may also affect compiled applications on computers that do not have the Visual Basic 4.0 32-bit development environment installed.

The ODBC SDK also overwrites the Mfc300.dll file, but this file isn't included with Visual Basic.

RESOLUTION

Extract the newer version of the Msvcrt20.dll from your original Visual Basic floppy disks or compact disc, and copy it over the old version installed by the ODBC SDK. The extract.exe program (a new version of which comes with Visual Basic) can be run using the following line to extract the file to the directory you specify (replace the path after the '/l' switch):

   extract /e /l c:\temp vb4-1.cab msvcrt20.dll

For more information on Extract.exe, type 'extract /?' at the command prompt.

STATUS

Microsoft has confirmed this to be a bug in versions of the ODBC SDK earlier than 2.10b. This problem was correct in version 2.10b and later.


Additional reference words: 4.00 vb4win vb4all fixlist2.10b buglist2.10a
KBCategory: kbinterop kbbuglist
KBSubcategory: APrgDataODBC
Keywords : APrgDataODBC kbbuglist kbinterop
Version : 4.00
Platform : WINDOWS
Solution Type : kbfix


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: October 30, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.