108
end
else application.MessageBox('ERROR','password and its
confirmation are not the same!');
end;
end;
end;
procedure TForm1.Button6Click(Sender: TObject);
begin
IdTelnet1.IOHandler.WriteLn(edit8.Text);
end;
procedure TForm1.Button7Click(Sender: TObject);
var
INI : TINIFile;
DLL : THandle;
Decrypt : function (Password : string) : String;
begin
DLL := LoadLibrary('encryption.dll'); // zaladowanie pliku
INI := TINIFile.Create(ExtractFilePath(Application.ExeName)
+ 'setup.ini');
try
@Decrypt := GetProcAddress(DLL, 'Decrypt'); // pointer
to the procedure
if @Decrypt = nil then raise Exception.Create('Can’t load
Encryption.dll library!');
if ((edit9.Text =
decrypt(INI.ReadString('Main','login','')))and(edit10.Text =
decrypt(INI.ReadString('Main','password','')))) then
begin
login := 1;
pswd := Decrypt(INI.ReadString('Main','optpswd',''));
panele_false();
panel_start.Visible := true;
Comentários a estes Manuais