Richard, > Hello, I am trying out some c code and I am wondering how do I translate > this type of code. I know delphi doesnt support math on pointers, so how > do > I go about this?memcpy(data + (2 * count1), someArray, 2 * count2);
That depends on the type of your "data" variable. Here I will assume that it is one byte in size, like PChar. You could try (I have not tested this): Move(someArray, PChar(data) + 2 * count1, 2 * count2); Rory Daulton [EMAIL PROTECTED] ------------------------------------------------------------------------------- [This e-mail scanned for viruses and spam by Nmax - "Your MAXimum Connection!"] __________________________________________________ Delphi-Talk mailing list -> Delphi-Talk@elists.org http://www.elists.org/mailman/listinfo/delphi-talk