using System.Runtime.InteropServices;[DllImport("user32.dll", CallingConvention = CallingConvention.StdCall)]public static extern int MessageBox(int hWnd, String strMessage, String strCaption, uint uiType); //调用MessageBox(0, "您好,这是 PInvoke!", ".net", 0);
1200字范文,内容丰富有趣,写作的好帮手!