unit rdzen;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, ComCtrls, Menus, ExtCtrls;

type
  TForm1 = class(TForm)
    procedure Koniec1Click(Sender: TObject);
    procedure Oprogramie1Click(Sender: TObject);
    procedure FormCreate(Sender: TObject);
    procedure FormClose(Sender: TObject; var Action: TCloseAction);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form1: TForm1;
procedure inicjuj;
    external 'core.dll' index 2;
procedure koniec;
    external 'core.dll' index 3;
implementation

{$R *.dfm}

procedure TForm1.Koniec1Click(Sender: TObject);
begin
form1.Close;
end;

procedure TForm1.Oprogramie1Click(Sender: TObject);
begin
Application.messagebox('Heh co tu pisac :-)' +#10 +#10 +#10, 'O autorze...',mb_ok);
end;

procedure TForm1.FormCreate(Sender: TObject);
begin
 inicjuj;
end;

procedure TForm1.FormClose(Sender: TObject; var Action: TCloseAction);
begin
 koniec;
end;

end.
