by LaVolpe (66 Submissions)
Category: Miscellaneous
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (11 Votes)
Want to compare 2 same-size bitmaps for equality? Want to compare 2 arrays for equality (even if arrays are different VarTypes)? NT-based systems have RTLCompareMemory, C has MemCmp. Win9x is reduced to byte by byte loops, more or less. This twist on that loop process comes really close to matching the speed of the two aforementioned API functions and can be used in every O/S. Thought I could use this for a project of mine, but the requirement went away. Compile the project for true tests (IDE is always slower). As always, stuffed with lots of comments.
Download FYI: vbMemCompare (RTLMemCompare, MemCmp Alternative) (8 KB)