Delphi 32 to Delphi XE2 (64 bit) conversion
I'm looking at migrating a Delphi 2007 business applications开发者_运维问答 to 64 Bit using Delphi XE2. I wanted to know if there are any guidelines which will help to developers or companies, who are considering migration of there Delphi applications to 64 bit with Delphi XE2.
Any help in this regard will be highly appreciated.
Here is my advice.
- First of all port the application to 32 bit Unicode.
- Then, port to 64 bit.
I would expect step 1 to be harder than step 2. For step 1 there is Marco Cantù's Unicode whitepaper. I'm not aware of anything similar yet for 64 bit. I strongly urge you to keep these two porting tasks separate. Smaller independent tasks are always easier than one bigger combined task.
Regarding the 64 bit port I can think of the following issues to deal with:
- All 3rd party libraries need updating.
- All inline assembler will need attention.
- Access to Windows API functions need looking at. A common idion is to pass
Integer(MyObject)
. That needs to be replaced withNativeInt(MyObject)
.
Other than that I don't think there is much to be concerned about. The Unicode port is likely to be far more problematic.
Barry Kelly's answer here puts some more flesh on this.
Addtionally to the answer of David you can check the documentation of Embarcadero about this topic
- Delphi 64-bit compiler Sneak preview (Video)
Converting 32-bit Delphi Applications to 64-bit Windows
- 64-bit Cross-Platform Application Development for Windows
- 64-bit Windows "Hello World" Cross-Platform Application
精彩评论