procedure Hello;
begin
  MessageDlg('Hello World!', mtInformation, [mbOK]);
end;procedure TForm1.Button1Click(Sender: TObject);
begin
Hello;
end;

解决方案 »

  1.   

    procedure Hello;
    begin
      MessageDlg('Hello World!', mtInformation, [mbOK],0);
    end;
      

  2.   

    [DCC Error] Unit1.pas(28): E2250 There is no overloaded version of 'MessageDlg' that can be called with these arguments[DCC Fatal Error] Project1.dpr(5): F2063 Could not compile used unit 'Unit1.pas'
      

  3.   

    procedure Hello;
    begin
      MessageDlg('Hello World!', mtInformation, [mbOK], 0);
    end;四个参数 2楼的对
      

  4.   

    为什么“Delphi精要”里没有提到 0??
    0 有什么功用??
      

  5.   

    函数原型:function MessageDlg(const Msg: string; DlgType: TMsgDlgType;
      Buttons: TMsgDlgButtons; HelpCtx: Longint): Integer;下次,遇到不熟的方法或函数,在代码编辑器里,按着ctrl键、用鼠标点击函数名,就可以找到出处,便知道具体参数数量及类型了。
      

  6.   

    噢噢噢噢~ 明白了~ Ctrl + 鼠键1 找出它的Uses 里的 Unit出处 对吗?