I'm looking to have the following C Code (CRC Check) converted to VB... // initialize the CRC16 table extern void InitCRC16( void ) { int i, j ; WORD crc ; for ( i = 0 ; i < 256 ; i += 1 ) { for ( crc = i << 8, j = 0 ; j < 8 ; j += 1 ) crc = ( crc << 1 ) ^ ( ( crc & 0x8000 ) ? 0x1021 : 0 ) ; CRC16Table[ i ] = crc ; } } // calculate the CRC of a string pointed at by p extern WORD CalcCRC16( char * p ) { WORD CRC ; for ( CRC = 0xFFFF ; *p != 0 ; p++ ) // for all chars of a string CRC = CRC16Table[ ( ( CRC >> 8 ) & 255 ) ] ^ ( CRC << 8 ) ^ *p ; return CRC ; }
## Deliverables
1) Complete source code of all work done. 2) Complete ownership and distribution copyrights to all work purchased.
## Platform
Windows 9x and higher.