Everywhere people are suggesting how to let visual studio know when visual studio at run time doesn't find a dll. But I want to know where do I remove the option so that visual studio at run time doesn't try to find a dll file? I have a similar question about it yesterday with no answer in here.
相关问题
- Sorting 3 numbers without branching [closed]
- How to compile C++ code in GDB?
- Why does const allow implicit conversion of refere
- How to know full paths to DLL's from .csproj f
- Importing NuGet references through a local project
相关文章
- vs2017wpf项目引用dll的路径不正确的问题
- How to show location of errors, references to memb
- Class layout in C++: Why are members sometimes ord
- How to mock methods return object with deleted cop
- Which is the best way to multiply a large and spar
- How to track MongoDB requests from a console appli
- C++ default constructor does not initialize pointe
- Selecting only the first few characters in a strin
Several options are available:
Remove the import library file from your project. Go to the Visual Studio linker settings and remove the entry (
Properties -> Linker -> Input
).If the library is specified by a
#pragma comment(lib:"xxxx")
(http://support.microsoft.com/kb/153901), then remove that line from your source file(s) and rebuild your application.If you really want to use the library, but only if certain runtime conditions are met, then use
1.
or2.
above, but change your source code to useLoadLibrary
andGetProcAddress
to dynamically load the library and obtain the function pointers at runtime.There is also a thing called
Delay Loaded DLL's
. If this is what you're after, here is the link to the information: http://msdn.microsoft.com/en-us/library/151kt790.aspx