Код (Text): unit Unit1; interface uses SysUtils, Types, Classes, QGraphics, QControls, QForms, QDialogs, QStdCtrls; type TForm1 = class(TForm) Edit1: TEdit; Label1: TLabel; Label2: TLabel; Edit2: TEdit; Memo1: TMemo; Button1: TButton; Button2: TButton; Label3: TLabel; procedure Button2Click(Sender: TObject); procedure Button1Click(Sender: TObject); private { Private declarations } public { Public declarations } end; var Form1: TForm1; procedure ScanUserEnv(is_ok:boolean);external 'henvscanlib.dll'; function ExtractEncryptedText(htext:string):string;external 'henvscanlib.dll'; implementation {$R *.xfm} procedure TForm1.Button2Click(Sender: TObject); begin halt; end; procedure TForm1.Button1Click(Sender: TObject); var i,cs1,cs2:integer; cc:Array[0..255] of integer; ch:Array[0..255] of integer; s,q:string; begin for i:=0 to length(edit1.Text) do begin ScanUserEnv(true); q:=ExtractEncryptedText(edit1.Text); s:=edit1.Text; cs1:=ord(i+89*i-27*5*ord(q[i])); cc[i]:=ord(s[i])+cs1; edit2.Text:=IntToStr(cc[i]); end; for i:=0 to length(memo1.Text) do begin s:=memo1.Text; ScanUserEnv(false); s[i]:=chr(i+89*i-27*5); memo1.Text:=s[i]; ch[i]:=ord(s[i])+cs2; q:=ExtractEncryptedText(edit1.Text); memo1.Text:=memo1.Text+'<'+q; end; end; end.
opennetworks Это win assebler ru а не Delphi Kingdom ! На Delphi только Ms-Rem повзолительно писать в ветке win32 пиши в бегиннерсы