delphi中调用api的时候怎么会有这样的问题? MessageBox(application.Handle,msg,title,MB_YESNO+MB_ICONINFORMATION);//出错行 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 更正,第2个错误是:[Error] test.pas(71): Statement expected, but expression of type 'Integer' found MessageBox(application.Handle,PChar(msg),PChar(title),MB_YESNO+MB_ICONINFORMATION);// MessageBox的内容写错了,function MessageBox(const Text, Caption: PChar; Flags: Longint): Integer;exampleApplication.MessageBox( 'Could not open Table1 exclusively - Try again?', 'Open Error', MB_OKCANCEL + MB_DEFBUTTON1);你的应该该为:MessageBox(msg;title;MB_YESNO+MB_ICONINFORMATION); 如何判断黑白图片的某点是黑色还是白色 请教递归转非递归:一个枚举注册表子键的函数,有While循环 FTP使用,关于文件名及文件路径的问题 在 弹出新窗口后怎么处理cookie? 在内存中读取字符串! 怎样实现窗口的渐隐效果? OpenDialog组件,在线等待。。。。 高分求解COM+接口函数参数问题 救救小弟!delphi 下的clint/sever和多线程、对硬件的控制应该怎么弄啊!多谢各位大虾! 如何有效的控制EXCEL文檔 delphi入门 正在看李维adomts的请进
[Error] test.pas(71): Statement expected, but expression of type 'Integer' found
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);