home *** CD-ROM | disk | FTP | other *** search
- { DMSGBOX2.PAS
- Demonstrates use of the MessageBox function
- }
- procedure TShell.DemoMessageBox;
-
- var
- Control : Word;
- ErrMsg : Array [0..0] of Longint;
- FileName: String;
-
- begin
-
- FileName := 'SAMPLE.TXT';
- ErrMsg[0] := Longint(@FileName);
- Control := MessageBox ('Problem renaming %s', @ErrMsg,
- mfError or mfOKButton or mfCancelButton );
-
- end; { TShell.DemoMessageBox }
-
-