943,685 Members | Top Members by Rank

Ad:
Nov 4th, 2008
0

Delphi to vb6.0

Expand Post »
Please convert this code to Delphi to VB 6.0

const
C1 = 43941;
C2 = 16302;

function BorlandEncrypt(const S: String; Key: Word): String;
var
I: byte;
begin
SetLength(Result,Length(S));
for I := 1 to Length(S) do begin
Result[I] := char(byte(S[I]) xor (Key shr 8));
Key := (byte(Result[I]) + Key) * C1 + C2;
end;
end;

Thanks,
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
poilkjmnb is offline Offline
18 posts
since Nov 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Visual Basic 4 / 5 / 6 Forum Timeline: Excel using macros
Next Thread in Visual Basic 4 / 5 / 6 Forum Timeline: Using FTP within VB APP





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC