User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the MS Access and FileMaker Pro section within the Web Development category of DaniWeb, a massive community of 426,182 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 1,797 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our MS Access and FileMaker Pro advertiser: Programming Forums
Views: 6774 | Replies: 0
Reply
Join Date: Feb 2007
Posts: 1
Reputation: Robert S is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
Robert S Robert S is offline Offline
Newbie Poster

Troubleshooting Error in loading DLL (Error 48) in Access 2003

  #1  
Feb 12th, 2007
Hi,

I am trying to deploy an Access database application that refers to a dll in VB code using a DECLARE statement. I wrote the dll in using VC++ 2005. I have tested the dll and it really does work fine, on some systems.

The application runs on one computer with Office 2003 SP2 installed and on another system that only has Office 2000 installed. I get this error message about the dll failing to load on any other system that I use, all of which have Access 2003 installed.

I get a run-time error 48: Error in loading DLL. The help information that come up is not very helpful:



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 only thing here that seems to make sense is the last item "The DLL or one of the referenced DLLs isn't in a directory specified by your path". I have checked and rechecked the path included in the DECLARE statement and tried changing it, but nothing works.

Does the dll have to be installed in a system directory like C:\Windows\system32 ? Or does the directory of the dll have to be in the PATH environment variable?

Does this have something to do with the security features in Office 2003?


Robert S
AddThis Social Bookmark Button
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb MS Access and FileMaker Pro Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the MS Access and FileMaker Pro Forum

All times are GMT -4. The time now is 6:33 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC