MessageBox(application.Handle,msg,title,MB_YESNO+MB_ICONINFORMATION);//出错行

解决方案 »

  1.   

    更正,第2个错误是:
    [Error] test.pas(71): Statement expected, but expression of type 'Integer' found 
      

  2.   

    MessageBox(application.Handle,PChar(msg),PChar(title),MB_YESNO+MB_ICONINFORMATION);//
      

  3.   

    MessageBox的内容写错了,
    function MessageBox(const Text, Caption: PChar; Flags: Longint): Integer;
    example
    Application.MessageBox(
            'Could not open Table1 exclusively - Try again?',
            'Open Error', 
            MB_OKCANCEL + MB_DEFBUTTON1);
    你的应该该为:
    MessageBox(msg;title;MB_YESNO+MB_ICONINFORMATION);