K
Kokie
I have problem with converting this C Function to VB.NET:
unsigned int GetCRC (char *buff)
{
int pos = 0;
int crc = 0;
while (buff [pos] != '\0')
{
crc ^= ((unsigned int)(unsigned char)(buff [pos]) << (pos % 9)) &
0x0ffff;
pos++;
}
return crc;
}
It uses Bit_Shift_Left which is not supportet in VB.NET
Any help will be appreciated.
Tx,
Kokie
unsigned int GetCRC (char *buff)
{
int pos = 0;
int crc = 0;
while (buff [pos] != '\0')
{
crc ^= ((unsigned int)(unsigned char)(buff [pos]) << (pos % 9)) &
0x0ffff;
pos++;
}
return crc;
}
It uses Bit_Shift_Left which is not supportet in VB.NET
Any help will be appreciated.
Tx,
Kokie