Runtime error 48 calling C++ DLL from Access
-
Hello Everyone, This is my first attempt at doing anything with C++. I'm trying to create a C++ DLL using Visual C++ 2005 Express. The idea is to be able to call the functions in this DLL from an access application. After trawling for days, I now have a DLL that compiles and seems to work fine on the PC where it was developed. When I put my application on a different PC, I get a runtime error 48 when trying to load the DLL. The error text is 'File not Found' when searching for my DLL, but my investigation has show that this is actually a DLL loading error. After adding debugging code, I find that the LoadLibrary error is 0. I have tried rebuilding the DLL, rewriting it and receive the same error '48' every time whenever I try to run the DLL functions on other machines, despite everything being fine on the dev box. Does anyone have any ideas? Should I be shipping more than just the DLL to other machines? Thanks in advance. G :confused:
-
Hello Everyone, This is my first attempt at doing anything with C++. I'm trying to create a C++ DLL using Visual C++ 2005 Express. The idea is to be able to call the functions in this DLL from an access application. After trawling for days, I now have a DLL that compiles and seems to work fine on the PC where it was developed. When I put my application on a different PC, I get a runtime error 48 when trying to load the DLL. The error text is 'File not Found' when searching for my DLL, but my investigation has show that this is actually a DLL loading error. After adding debugging code, I find that the LoadLibrary error is 0. I have tried rebuilding the DLL, rewriting it and receive the same error '48' every time whenever I try to run the DLL functions on other machines, despite everything being fine on the dev box. Does anyone have any ideas? Should I be shipping more than just the DLL to other machines? Thanks in advance. G :confused:
Wheres your dll file(path) in current directory from your app or in windows directory
_**
**_
WhiteSky
-
Hello Everyone, This is my first attempt at doing anything with C++. I'm trying to create a C++ DLL using Visual C++ 2005 Express. The idea is to be able to call the functions in this DLL from an access application. After trawling for days, I now have a DLL that compiles and seems to work fine on the PC where it was developed. When I put my application on a different PC, I get a runtime error 48 when trying to load the DLL. The error text is 'File not Found' when searching for my DLL, but my investigation has show that this is actually a DLL loading error. After adding debugging code, I find that the LoadLibrary error is 0. I have tried rebuilding the DLL, rewriting it and receive the same error '48' every time whenever I try to run the DLL functions on other machines, despite everything being fine on the dev box. Does anyone have any ideas? Should I be shipping more than just the DLL to other machines? Thanks in advance. G :confused:
Where are you installing the DLL on the other machines? The DLL needs to be either in the same directory as the calling executable (Access in the case) or in the Windows path. Are you using a library in your DLL? (i.e. MFC) If so are you using static linking or dynamic linking? Any dynamically linked library needs its DLL to follow the same rules, in the same directory as the executable or in the windows path.
-
Hello Everyone, This is my first attempt at doing anything with C++. I'm trying to create a C++ DLL using Visual C++ 2005 Express. The idea is to be able to call the functions in this DLL from an access application. After trawling for days, I now have a DLL that compiles and seems to work fine on the PC where it was developed. When I put my application on a different PC, I get a runtime error 48 when trying to load the DLL. The error text is 'File not Found' when searching for my DLL, but my investigation has show that this is actually a DLL loading error. After adding debugging code, I find that the LoadLibrary error is 0. I have tried rebuilding the DLL, rewriting it and receive the same error '48' every time whenever I try to run the DLL functions on other machines, despite everything being fine on the dev box. Does anyone have any ideas? Should I be shipping more than just the DLL to other machines? Thanks in advance. G :confused: