unit Unit1;interface
uses
windows;implementation
messagebox(nil,'hello world','message',MB_OK);
end.这是偶弄的代码 呵呵 可是提示 declaration expected but identifier 'messagebox' found
could not compile used unit 'unit1.pas'偶搜索了一下 windows.pas 好像messagebox函数就是在里面定义的
uses
windows;implementation
messagebox(nil,'hello world','message',MB_OK);
end.这是偶弄的代码 呵呵 可是提示 declaration expected but identifier 'messagebox' found
could not compile used unit 'unit1.pas'偶搜索了一下 windows.pas 好像messagebox函数就是在里面定义的
选View->Units...,打开Project1,修改代码如下:
program Project1;uses
windows;begin
MessageBox(0, PChar('<=8192'), PChar('小程序'), MB_ICONINFORMATION);
end.
.pas是定义窗口逻辑
.dpr是定义整个程序