Just starting out? Need help? Post your questions and find answers here.
bbanelli
 
Posts: 96
Joined: Mon Jul 13, 2015 7:40 am

Fingerprint, CompareMemory and other functions using Offset

by bbanelli Wed Jan 03, 2018 10:24 pm

Greetings to all,

can anyone give some additional clarification regarding those? All examples in help are wrong and can't be used.

For example:

Code: Select all
Result$ = Fingerprint(*Buffer, Offset, Size, Plugin [, Bits])


Code: Select all
  UseMD5Fingerprint()

  *Buffer = AllocateMemory(500)   
  If *Buffer
    PokeS(*Buffer, "The quick brown fox jumps over the lazy dog.", -1, #PB_Ascii)
    MD5$ = Fingerprint(*Buffer, MemoryStringLength(*Buffer, #PB_Ascii), #PB_Cipher_MD5)
    Debug "MD5 Fingerprint = " + MD5$
    FreeMemory(*Buffer)  ; would also be done automatically at the end of the program
  EndIf


CompareMemory has wrong declaration in help file, to begin with, without example. IDE reports function takes 5 parameters (source pointer, source offset, destination pointer, destination offset and length).
"If you lie to the compiler, it will get its revenge."
Henry Spencer
http://www.pci-z.com/
Return to Coding Questions

Who is online

Users browsing this forum: falsam and 1 guest