Home  |   French  |   About  |   Search  | mvps.org  

What's New
Table Of Contents
Credits
Netiquette
10 Commandments 
Bugs
Tables
Queries
Forms
Reports
Modules
APIs
Strings
Date/Time
General
Downloads
Resources
Search
Feedback
mvps.org

In Memoriam

Terms of Use


VB Petition

Bugs: Error 53 when calling functions from custom DLL

Author(s)
Dev Ashish
  If you have custom DLLs created in VB 6 or VB 5, you might get error 53 (file not found) in the declare statement itself.

Private Declare Function fDLLFunction Lib "C:\My Documents\DLLs\SomeDLL.DLL" _
    (Byval strParam1 as string, lngParam2 as Long) as long

    This is caused by a missing Dependency file (runtime files) on your machine that's required by the DLL. The error message "File Not Found" is not being generated by the DLL file itself, but Access since it cannot locate the other required DLLs.

     To find out if the DLL has any dependencies, you can use one of these two methods.

  1. Download Dependency Walker  Search your hard drive for any dependent files and make sure they exist and are registered.
  2. Use Windows NT's QuickView utility to view the DLL's Import Table.   All dependent files should be listed here.  Note that Windows 95 and 98 versions of the QuickView utility do not allow you to view this information.

© 1998-2010, Dev Ashish & Arvin Meyer, All rights reserved. Optimized for Microsoft Internet Explorer