private
[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);
}
[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);
}