Currently in our VB.Net windows application, 'C' libraries are present under 'bin' directory but we want to store it under aplication root directory where other forms and classes are present...How can we do this in Vb.Net 2008?
+1
A:
The P/Invoke layer uses the rules that the LoadLibrary API function uses in order to find the DLLs that you specify with the DllImport attribue.
That being said, you should look at the Remarks section of the LoadLibrary API function, as the dllName parameter for the constructor of the DllImportAttribute is ultimately what is passed as the lpFileName parameter name for the LoadLibrary function.
casperOne
2010-02-26 06:31:51