Witam
Informatyk zadal mi to na wolne, mam mu zdefiniowac najprostsza klase w biblotece DLL i uzyc jej w aplikacji konsolowej
Udalo mi sie stworzuyc DLL z badziewiasta klasa:
library bibl;
uses
SysUtils,
Classes;
{$R *.res}
type TStudent = CLASS
Private
Imie :string;
Public
procedure Wczytaj;
procedure Wyswietl;
end;
{ TStudent }
procedure TStudent.Wczytaj;
begin
write('Podaj imie studenta: '); readln(Imie);
end;
procedure TStudent.Wyswietl;
begin
writeln('Imie studenta to ',Imie);
end;
{
exports
TStudent;
}
begin
end.
end.
Sugerowalem sie Boduchem, ale proba exportowania wyklada sie
Da sie <ort>w ogóle </ort>zrobic cos takiego?
Thx
Pozdro