How do I set the path to a DLL file in Visual Studio?

asked16 years ago
last updated9 years ago
viewed240.2k times
Up Vote160Down Vote

I developed an application that depends on a DLL file. When I my application, the applicationwould complain that:

"This application has failed to start because xxx.dll was not found."

So I have to copy the DLL file into the same directory as my .vcproj file.

Is there a way to set the project to look for the DLL file in (preferably) some relative path or (not preferred) some absolute path?

Similar concept to how we set include and library path in the project settings.

I mean when I my application (hitting ) the above error would pop up.