waleed.makarem 0 Light Poster

Dear All ,

I need your support to convert the below C++ 6 lines code to C# or vb.net . this function calculates the checksum for a given text.


GUCHAR GenerateCkSum(GUCHAR *pure_data, U2 size)
{
GUCHAR chksum;
I2 i;
chksum = pure_data[0];
for(i=1; i<size ; i++)
chksum ^= pure_data;
return chksum;
}


Thank you in advance for your support.

wsn