Muokkaa

Jaa


Error in loading DLL (Error 48)

A dynamic link library (DLL) is a library specified in the Lib clause of a Declare statement. This error has the following causes and solutions:

  • The file isn't DLL-executable. If the file is a source-text file, it must be compiled and linked to DLL executable form.

  • The file isn't a Microsoft Windows DLL. Obtain the Microsoft Windows DLL equivalent of the file.

  • The file is an early Microsoft Windows DLL that is incompatible with Microsoft Windows protect mode. Obtain an updated version of the DLL.

  • The DLL references another DLL that isn't present. Obtain the referenced DLL and make it available to the other DLL.

  • The DLL or one of the referenced DLLs isn't in a directory specified by your path. Move the DLL to a referenced directory or place its current directory on the path.

  • The DLL is not the same bit version as the operating environment of VBA. For more information about bit version incompatibility, see Mixing 32 and 64 bit DLLs on the Intel developer forum.

For additional information, select the item in question and press F1 (in Windows) or HELP (on the Macintosh).

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.