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


i developed application depends on dll file. when debug application, applicationwould complain that:

"this application has failed start because xxx.dll not found."

so have copy dll file same directory .vcproj file.

is there way set project dll file in (preferably) relative path or (not preferred) absolute path?

similar concept how set include , library path in project settings.

i mean when debug application (hitting f5) above error pop up.

  1. go project properties (alt+f7)
  2. under debugging, right
  3. there's environment field.
  4. add relative path there (relative vcproj folder) i.e. ..\some-framework\lib appending path=%path%;$(projectdir)\some-framework\lib or prepending path path=c:\some-framework\lib;%path%
  5. hit f5 (debug) again , should work.

Comments

Popular posts from this blog

dns - How To Use Custom Nameserver On Free Cloudflare? -

python - Pygame screen.blit not working -

c# - Web API response xml language -