using system; using system.runtime.interopservices; class mainapp { [dllimport("user32.dll", entrypoint="messagebox")] public static extern int messagebox(int hwnd, string strmessage, string strcaption, uint uitype); public static void main() { messagebox( 0, "hello, this is pinvoke in operation!", ".net", 0 ); } }
新闻热点
疑难解答
图片精选