11/18/2024
Delphi2Cpp 2.6.0
1) Fully redesigned interface support
Delphi2CB 2.6.0 now provides a precise mapping of Delphi interface mechanics to the native C++Builder model:
|
This makes it possible to translate Delphi interfaces 1:1 into valid, compilable C++Builder code.
2) New core module d2c_sysinterface.h
A new internal module consolidates all key interface utilities and helper types:
|
These utilities form the foundation of Delphi2CB's new interface translation layer.
3) Enhanced translation of interface declarations
Delphi2CB automatically recognizes GUIDs in Delphi interfaces and converts them into
INTERFACE_UUID("{...}") declarations in proper C++Builder syntax.
Delphi
type
IFoo = interface
['{12345678-1234-1234-1234-1234567890AB}']
procedure DoSomething;
end;
C++Builder
__interface INTERFACE_UUID("{12345678-1234-1234-1234-1234567890AB}") IFoo : public IInterface
{
virtual void __fastcall DoSomething() = 0;
};
The result is clean, idiomatic C++Builder code that compiles without modification.
4) Support for TInterfacedObject and TCppInterfacedObject
Delphi2CB now directly uses the native Embarcadero classes: TInterfacedObject and TCppInterfacedObject
5) Better error handling and diagnostic exceptions
New helper functions provide detailed runtime feedback when interface casts fail:
|
These ensure full behavioral consistency with Delphi, including proper exception types like EIntfCastError and EInvalidCast.
10/28/2024
see Delphi2Cpp 2.5
08/26/2024
There is now an additional version of the Synedit components translated for C++Builder for the modern 64-bit compiler. The previous versions have also been partially updated.
https://github.com/dm-e/SynEditCb
further see Delphi2Cpp 2.4
10/19/2023
Delphi2CB 2.3
Conversion of DFM files to C++
The code of DFM files can now optionally be converted into C++ code that is executed at runtime when the form or a frame is created. Essentially, the DFM code becomes to a series of simple assignments of values to component properties. Delphi2Cpp also manages to map other sometimes complex serialization actions in an intuitive and simple way. For this purpose, special routines are called which do not assign the values to the properties directly, but rather pass them as arguments to the routines, in which further actions can then be carried out. Especially for third-party components, Delphi2Cpp can be configured to call such user-defined functions.
By translating the DFM code, GUI applications can be built in C++Builder that do not require any DFM files at all. For other compilers, converting the DFM code is the essential bridge to using C++ GUI libraries.
More details about converting DFM files
Delphi2CB 2.2
01/31/2023
Adopting changes to Delphi2C# to facilitate translation of incomplete code
|
Delphi2CB 2.1
02/07/2022
|
9.9.2021
Delphi2CB released
Deutsch
| Latest News |
|
11/18/25
Delphi2CB 2.6: Delphi Interfaces [more...] |
|
10/28/24
Delphi2CB 2.5: Symbol names matching declaration case [more...] |
|
"Amazing, I actually managed to do it on both projects." Christoph Wildensee
auditplan-xp
October 2, 2024
|
|
"Though we have not finished the conversion yet, I'm glad that we've found you and could transform Eurocap to C++ with the help of Delphi2CB and you. (And I'm also glad that we could help you to make Delphi2CB better😉)" Gáspár Huba
|
|
This website is generated from plain text with [Minimal Website ]
|
Minimal Website
is made with TextTransformer
|
TextTransformer is made with Borland
CBuilder
|