[DllImport("user32.dll", EntryPoint = "MessageBoxA")] static extern int MsgBox(int hWnd, string msg, string caption, int type); private void Demo() { MsgBox(0, "这就是用DllImport调用DLL弹出的提示框哦!", "提示", 0x30); } 相关文章: 2022-12-23 2022-12-23 2021-12-25 2022-01-02 2021-06-12