program Init;
uses PXEngine, WinCrt;

var PxErr: Integer;

procedure PX(Code : integer);
begin
  writeln(PXErrMsg(Code));
end;

begin
  (* Attempt to initialize the Engine *)
  PxErr := PXWinInit('MyApp', pxShared);
  if PxErr <> PxSuccess then
    Writeln(PxErrMsg(PxErr))
  else PX(PXExit);
end.
