반응형






import하고자 하는 클래스파일 상단에 using 선언해주고.


using System.Runtime.InteropServices;

using System.Text;




하단의 class 안에


[DllImport("dll파일 이름", 어떻게 호출할 것인가)]


양식에 맞춰서 써주면됨.



ex.

[DllImport("msvcrt.dll", EntryPoint="puts")]


반응형

+ Recent posts