c++ - Why can't Visual Studio find my DLL? -


this question has answer here:

in visual studio 2010, under vc++ directories > executable directories, have specified path glew32d.dll. however, when run executable, still complains.

on other hand, if copy dll local folder , run executable then, doesn't complain.

can please tell me how fix this? also, why visual studio not recognizing path?

update scenario: use template project use starter code lot of projects. template depends on glew32d.dll. store dependent dlls in common bin folder. hoping reference folder , visual studio read dlls there, instead of me having copy dlls everytime. way handle this?

specifying path dll file in project's settings not ensure application will
find dll @ run-time. told visual studio how find files needs. has nothing
how program finds needs, once built.

placing dll file same folder executable far simplest solution. that's default search path dependencies, won't need special if go route.
avoid having manually each time, can create post-build event project that
automatically copy dll appropriate directory after build completes.

alternatively, deploy dll windows side-by-side cache, , add manifest application specifies location.


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -