Code: Alles auswählen
var
  Fstart: TFstart;
  hnd: THandle;
  myprog: procedure;
 
implementation
 
{ TFstart }
 
procedure TFstart.MenuItem2Click(Sender: TObject);
begin
  Close;
end;
 
procedure TFstart.MenuItem4Click(Sender: TObject);
begin
 hnd:=LoadLibrary(Pchar('peerf.dll'));
 if hnd <> 0 then
 begin
  @myprog:= GetProcaddress(hnd,'penew');
  if @myprog <> nil then
  begin
   Fstart.Visible:=False;
   myprog;
   Fstart.Visible:=True;
  end;
  FreeAndNil(hnd);
 end;
end;Code: Alles auswählen
@myprog:= GetProcaddress(hnd,'penew');Danke im voraus