Results 1 to 2 of 2

Thread: Need Delphi Help!!

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2006
    Posts
    1

    Need Delphi Help!!

    I'm porting a code from C to Delphi, and I got ome errors in the Arrays, I've never used Arrays before, so I'm stuck lol, my intention is to send data to a server, thats just part of the server encryption key.

    VB Code:
    1. procedure xxx_xxxxx_xxxx_xxx_xx(data: Byte);
    2. var
    3. x: Word;
    4. begin
    5.   if x = 0 then
    6.    while x <448 do x := x +  3;
    7.      begin
    8.       data : array[0..x-1] of data[x] xor $19;
    9.       data : array[0..x + 1-1] of  := 1] xor $16;
    10.       data[x + 2] := 2] xor  $18;
    11.      end;
    12.  end;

    This code is in Delphi, I don't know how to get past the errors I'm getting with the Arrays, can anyone help me?
    Last edited by ¿InFaMoUs?; Jun 5th, 2006 at 05:04 PM.

  2. #2
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    Re: Need Delphi Help!!

    You need to declare an array in the var section:
    Code:
    var
        data: array[1..10] or integer;
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width