Method for calculating checksum of GPS data by VC++