Jimmy Johnson wrote: > I'm new to Visual C++ so sorry for so basic a question, but...I can't find > the solution or answer elsewhere. > > When executing from the debugger, I get this error: "An unhandled > non-continuable STATUS_DLL_NOT_FOUND exception was thrown during process > load." > > I know it can't find the dll because when I move the executable and the dll > to the same directory it runs fine. So, how do I make the debugging > environment know where to look for the dll? > > thanks, > > jjj
The debugger is not magical. It obeys the rules of how Windows loads any DLL: http://msdn.microsoft.com/en-us/library/ms682586%28VS.85%29.aspx If you are building the DLL elsewhere on the system and want ease-of-use between the DLL and your EXE, write a post-compile step to copy the DLL to the output EXE directory when building the DLL. -- Thomas Hruska CubicleSoft President Ph: 517-803-4197 *NEW* MyTaskFocus 1.1 Get on task. Stay on task. http://www.CubicleSoft.com/MyTaskFocus/
