DLLForm.pas 612 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. unit DLLForm;
  2. interface
  3. uses
  4. Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  5. Dialogs, StdCtrls;
  6. type
  7. TfDLLMain = class(TForm)
  8. Button1: TButton;
  9. Memo1: TMemo;
  10. Button2: TButton;
  11. procedure Button1Click(Sender: TObject);
  12. procedure Button2Click(Sender: TObject);
  13. private
  14. { Private declarations }
  15. public
  16. { Public declarations }
  17. end;
  18. var
  19. fDLLMain: TfDLLMain;
  20. implementation
  21. {$R *.dfm}
  22. procedure TfDLLMain.Button1Click(Sender: TObject);
  23. begin
  24. TObject.Create;
  25. end;
  26. procedure TfDLLMain.Button2Click(Sender: TObject);
  27. begin
  28. Close;
  29. end;
  30. end.