#1 2013-11-13 09:16:25

amsdev
Member
Registered: 2011-09-16
Posts: 23

Can you add C++Builder support if I pay for it ?

Hi,

mORMot is very nice framework ! I want to use it in my project very much but I can't because I have to
many legacy C++Builder code. So, I need to use it from BCB :-(

Current SynCommon.pas version cannot be compiled for BCB because it's use Object type. This type cannot be translated while generating C++ .hpp headers.

I was try to modify your code but found to many problems with TDynArray and THashedDynArray.

Can you update code and use Classes instead of Objects if I pay/donate for it ?

How much I must pay ?

You can contact me by email - support[at]bspdev.com

Thank you !

Offline

#2 2013-11-13 16:24:33

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,240
Website

Re: Can you add C++Builder support if I pay for it ?

Newer version of the code is able to use record instead of object.
Which version of the Delphi/C++ compiler are you using?

Offline

#3 2013-11-13 17:08:53

amsdev
Member
Registered: 2011-09-16
Posts: 23

Re: Can you add C++Builder support if I pay for it ?

I try RAD Studio 2007 with all updates:

delphi version compiles ok
if hpp/obj generation enabled - "Unsupported language feature 'Object'" error.

Also, I try in XE4 Update1:

delphi version compiles with some problems:

Fails on line 19036 in SynCommons.pas: DynArray(TypeInfo,Dest).InternalSetLength(aCount);
[dcc32 Error] SynCommons.pas(19036): E2036 Variable required

and on line 22040 inside function GetDelphiCompilerVersion: RawUTF8:
[dcc32 Error] SynCommons.pas(22040): E2029 Expression expected but 'END' found

But after commenting this lines it's compiled ok.

if hpp/obj generation enabled - same error: "Unsupported language feature 'Object'"

I try to manually change all Objects types to Record where possible.

But problem with TDynArray and THashedDynArray because we have inheritance here.
I try to change it to Class, it's compiles somehow but produce to many warnings like:

"Variable of TDynArray type may not initialized" in many places..

Looks like after changing type to Class - all TDynArray instances must be constructed manually with .Create and .Free

Because library is very big and complex - I can't make this changes myself...

Offline

Board footer

Powered by FluxBB