If I have some .dcu files; how can I find out which Delphi version they were compiled with?
I received some old source code, and some .dcu files are included, and I don't have access to the original source code. I want to refactor this library out, but for that I want to just make it compile in the original Delphi version first.
By the way, the compiler could be a bit more helpful here. It states that file X was compiled with a "different" version, without saying -which- version that is....
From unofficial sources, look at 4th byte of the .dcu
There was no change in .dcu format going from Delphi 2006 to Delphi 2007. Therefore they use the same.
Edit Jul 2, 2016 Added XE8, 10 and 10.1 to the list.
On request, also the target platform, which is found in the second byte of the .dcu. Values are of course valid only for versions that have these targets.
Let me know if you think there's an error.