B
bloodymary
Unregistered / Unconfirmed
GUEST, unregistred user!
好像MessageBox有个缺陷:<br>i:=0;<br> messagedlg('hi'+inttostr(i+1),mtinformation,[mbok],0);//运行成功!<br> messagebox(application.handle,'hi','caption',mb_ok);//运行成功!<br> messagebox(application.handle,'hi'+inttostr(i+1),'caption',mb_ok);//运行失败!<br>出错信息:[Error] Unit1.pas(32): Incompatible types: 'String' and 'PAnsiChar'<br>怎样解决这个问题?(不能用 messagedlg('hi'+inttostr(i+1),mtinformation,[mbok],0);解决,能用MessageBox解决吗?)<br>也就是说,能动态输出PAnsiChar吗?<br>请各位指点!