DLL
-
I am trying to use a DLL in my Application . So i have been provided with the following MyDll.dll MyDll.h MyDll.lib I placed all these under a folder inside my Project called MyDll Files I added the Library by going into Project-->Settings--> Link Tab and adding DBusFiles/DBusDrv.lib Now I am writing a Wrapper classes for the DLL functionality called CMyDllInterface CMyDllInterface ::CMyDllInterface { // Some call to DLL } I get a message box with a message (with n different path names ) saying that it couldnt find the DLL . I know that if i put the dll inside WINNT\System32 it will work , but is there a way I can do it the other way ? Engineering is the effort !
-
I am trying to use a DLL in my Application . So i have been provided with the following MyDll.dll MyDll.h MyDll.lib I placed all these under a folder inside my Project called MyDll Files I added the Library by going into Project-->Settings--> Link Tab and adding DBusFiles/DBusDrv.lib Now I am writing a Wrapper classes for the DLL functionality called CMyDllInterface CMyDllInterface ::CMyDllInterface { // Some call to DLL } I get a message box with a message (with n different path names ) saying that it couldnt find the DLL . I know that if i put the dll inside WINNT\System32 it will work , but is there a way I can do it the other way ? Engineering is the effort !
The DLL should go in the same directory as your EXE. --Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | 1ClickPicGrabber | CP SearchBar v2.0.2 | C++ Forum FAQ Strange things are afoot at the U+004B U+20DD
-
The DLL should go in the same directory as your EXE. --Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | 1ClickPicGrabber | CP SearchBar v2.0.2 | C++ Forum FAQ Strange things are afoot at the U+004B U+20DD
-
I am trying to use a DLL in my Application . So i have been provided with the following MyDll.dll MyDll.h MyDll.lib I placed all these under a folder inside my Project called MyDll Files I added the Library by going into Project-->Settings--> Link Tab and adding DBusFiles/DBusDrv.lib Now I am writing a Wrapper classes for the DLL functionality called CMyDllInterface CMyDllInterface ::CMyDllInterface { // Some call to DLL } I get a message box with a message (with n different path names ) saying that it couldnt find the DLL . I know that if i put the dll inside WINNT\System32 it will work , but is there a way I can do it the other way ? Engineering is the effort !
searches dll in the following sequence: The directory from which the application loaded. The current directory. Windows 95 and Windows 98: The Windows system directory. Use theGetSystemDirectory function to get the path of this directory. Windows NT: The 32-bit Windows system directory. Use the GetSystemDirectory function to get the path of this directory. The name of this directory is SYSTEM32. Windows NT: The 16-bit Windows system directory. There is no function that obtains the path of this directory, but it is searched. The name of this directory is SYSTEM. The Windows directory. Use theGetWindowsDirectory function to get the path of this directory. The directories that are listed in the PATH environment variable. AntonlioX