I'll try this again, you will either have to use FPC (and figure it out), Lazarus (witch lets you design your windows gui in a semi-wysiwyg), or Delphi (slightly more stable then Lazarus).

If your using an older copy of Pascal from Turbo or Borland then you won't be able to do Win32 applications that include visual forms.

Using FPC, Lazarus, or Delphi do a google. Their are litterly 1000's of tutorials on how to build "Hello World!" and more in them.

The code that was posted was for Delphi, and won't work in older version of Turbo/Borland Pascal, nor will it work in FPC. It should work in Lazarus (without too much tweaking).