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.
- go project properties (alt+f7)
- under debugging, right
- there's environment field.
- add relative path there (relative vcproj folder) i.e. ..\some-framework\lib appending
path=%path%;$(projectdir)\some-framework\lib
or prepending pathpath=c:\some-framework\lib;%path%
- hit f5 (debug) again , should work.
Comments
Post a Comment