Einzelnen Beitrag anzeigen

Kas Ob.

Registriert seit: 3. Sep 2023
353 Beiträge
 
#3

AW: DCU in neue Delphi-Version einbinden

  Alt 1. Jul 2024, 19:54
Hi,

I have few minutes again before the blackout, and want to point a way that might work.

You need to fix the compiler magic number in the DCU, this might works, but no guarantee.
It did work with different steps from the ones i am listing below, between different versions, like it did work for Delphi2010 and 2009, and between XE8 and Seattle, but not between 2010 and XE8.

so here the steps:
1) build a small or empty project with one added unit lets call it Test.pas, build the same project by your two IDEs.
2) use HEX editor to compare both the DCUs
3) if the difference 4 bytes then change the first one only, most likely and if you are lucky the 4th byte at index 3 is the magic number for the compiler and it will fool the newer version.

after checking the change that worked for Test.pas/Test.dcu apply the same for your own DCU, if you changed more than one byte then... well you know what to do and what to experiment there.

Good luck !

ps: as himitsu pointed if there is huge difference in RTL/VCL dependency between the IDE versions then the steps above will not work, and to make it work there is many other steps of hacking the DCU structure and renaming, will be huge process that will not worth wasting time.
Kas
  Mit Zitat antworten Zitat