I am using Ascii Encoding in C# to call a CRC 16 Checksum function that I found online (see http://www.sanity-free.org/134/standard_crc_16_in_csharp.html). I modified the code to return an Integer instead of a ushort. The result for one set of bytes is different than the results from running SYS(2007) in VFP with the same bytes.
The next step is to continue my online research for either someone who has achieved this effort or more breadcrumbs. One thing I am testing is using different Encoding, as I'm not certain ASCII is the proper choice here.
To be fair - I have done little with CRC or Checksum's, even in my VFP days, so this is very much a learning process that started last night.
No comments:
Post a Comment