You are not logged in.
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
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