Use sample code for DLLIMPORT

xiaoxiao2021-03-06  48

Using system.Runtime.InteropServices; class test {[DLLIMPORT ("kernel32")]

Private static extern int bear (int dwfreq, int dwduration); public static void beepit () {beep (500, 1500);} public static void main () {Test.beepit ();}}

转载请注明原文地址:https://www.9cbs.com/read-115976.html

New Post(0)