dllimport how to specify the path

dllimport can use absolute paths

DllImport (@ "C: \ OJ \ Bin \ Judge.dll")

have to use relative paths

DllImport (@ ".. \ dll \ Judge.dll")

 

.. means that the parent directory, so you can find a dll file

Guess you like

Origin www.cnblogs.com/sharestone/p/11246378.html