Application->MessageBox("AA", "BB", MB_OK + MB_ICONSTOP)这种写法对不对?

解决方案 »

  1.   

    Application.MessageBox('aa','系统提示', MB_OK + MB_IconStop)
      

  2.   

    Application->MessageBox('AA', 'BB', MB_OK + MB_ICONSTOP)
      

  3.   

    BCB?那就没错,C++中只在定义字符时才用单引号,楼上各位给的反而全错了
      

  4.   

    to ehom(?!) :
         人家说的是delphi
    bcb中是双引号,delphi中是单引号
      

  5.   

    我知道他是C++ Builder,可这个Delphi区呀!
      

  6.   

    别那么激动,我也只不过说如果在C++中没错,何况楼主是用运算符->来指向类成员的指针引用,确实更容易让人联想到C++
      

  7.   

    delphi的example:
    { Try to open Table1 with Exclusive True }{ First, close Table1 }
    Table1.Active := False;
    repeat { until successful or Cancel button is pressed }
      try
        Table1.Exclusive := True; { See if it will open }
        Table1.Active := True;
        Break; { If no error, exit the loop }
      except
        on EDatabaseError do
        { Ask if it is OK to retry. If it isn抰, reraise to abort }
          if Application.MessageBox(
            'Could not open Table1 exclusively - Try again?',        'Open Error', 
            MB_OKCANCEL + MB_DEFBUTTON1) <> IDOK then
            raise; 
    { Otherwise resume the repeat loop }
      end;
    until False;