| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | Newsletters | VB Forums | Developer.com |
|
|||||||
| Managed C++ and C++/CLI Discuss Managed C++ and .NET-specific questions related to C++. |
![]() |
|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
dll not found error
i compile and build my application but when executing it gives xx.dll not found error. what can be the problem?
|
|
#2
|
||||
|
||||
|
Re: dll not found error
It probably means that your program needs the specified dll, but it cannot find it.
When looking for a DLL these directories will be searched: - The directory from which the application loaded. - The current directory. - The system directory. Use the GetSystemDirectory function to get the path of this directory. - The 16-bit system directory. There is no function that obtains the path of this directory, but it is searched. Windows Me/98/95: This directory does not exist. - The Windows directory. Use the GetWindowsDirectory function to get the path of this directory. - The directories that are listed in the PATH environment variable. If the DLL isn't in one of these directories then you could either copy/move it there, or you can specify the directory in the PATH environment variable. If you're dealing with Run-time dynamic linking you can also use the SetDllDirectory(...) to modify your search path. - petter |
|
#3
|
|||
|
|||
|
Re: dll not found error
thanks. i solved the problem. i added a path to the enviromental variables
|
![]() |
| Bookmarks |
|
||||||
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|