rudy999 2 Posted February 11, 2021 I had the requirement to compare to two text files (via Tmemo) and found the TDIFF component that worked exactly as I wanted. win32 app. I just set the application to compile as a win64 bit app and the results were 'wrong'. (As verified with Notepad++ compare). No crash, no warning, just different results. I am guessing the optimizations within the TDIFF unit and pointer use do not work in 64 bit target platform. Description: Component to list differences between two integer arrays * * using a "longest common subsequence" algorithm. * * Typically, this component is used to diff 2 text files * * once their individuals lines have been hashed. * I could not find another Component in JVCL - any alternatives out there? Thank you in advance Share this post Link to post
Guest Posted February 12, 2021 (edited) have seen this Github repository: https://github.com/rickard67/TextDiff Text compare component for Delphi and Free Pascal Component TDiff * * Version: 5.02 * * Date: 23 May 2020 * * Compilers: Delphi 10.x * * Author: Angus Johnson - angusj-AT-myrealbox-DOT-com * * Copyright: © 2001-2009 Angus Johnson * * Updated by: Rickard Johansson (RJ TextEd) hug Edited February 12, 2021 by Guest Share this post Link to post
rudy999 2 Posted February 12, 2021 Thank you ! I was able to download the GITHUB TDIFF and got the app working with identical results in Win32 or Win64. I may have an incorrect setup but I had to add Winapi.Windows to the HashUnit (DWORD was not defined?) to compile properly. regards all Share this post Link to post
David Heffernan 2345 Posted February 12, 2021 This is something that crops up over and again. Always get third party libraries from their main repos, and make sure you are up to date. Share this post Link to post