A quick question: When declaring the DLLImport Attribute in .Net, where does the runtime look to resolve that DLL dependency? Would I have to dump the DLL and all of its dependencies in the bin folder?
相关问题
- Generic Generics in Managed C++
- How to Debug/Register a Permanent WMI Event Which
- 'System.Threading.ThreadAbortException' in
- Bulk update SQL Server C#
- Should I use static function in c# where many call
I think it is working like LoadLibrary.
Maybe Windows path searching in LoadLibrary with manifest will be helpfull.
Edit Dynamic-Link Library Search Order is probably what you want.
Generally, you'd expect it to look at whatever's defined in the user's Path.
To find out what this contains, from a command prompt, type
echo %PATH%
[Enter]