How to Calculate the Checksum Byte of a General FieldID: Q129534 The information in this article applies to:
SUMMARYWhen a bitmap is appended to a general field, the actual information of the general field is stored in the associated .FPT file. The .FPT file holds the bitmap information followed by four bytes. The first of these four bytes is a checksum byte. The next three bytes are: AD 05 FE in hex. This article lists the C code that writes the checksum byte to enable programmers to write their own General fields manually if so desired.
MORE INFORMATIONThe checksum byte is calculated by FoxPro by using the following C code: static unsigned char ObjectCheckSum = 0;
Additional reference words: FoxWin 2.60a
KBCategory: kbprg kbcode
KBSubcategory: FxprgGeneral
|
|
Last Reviewed: June 27, 1995 © 1999 Microsoft Corporation. All rights reserved. Terms of Use. |