I have been unable to build the Delphi 6 packages using the 997 and 1001 builds.The error I’m getting is as follows
"Error in module : Declaration of class TRODataSnapSimpleAppServer is missing or incorrect". Is Delphi 6 still supported? if not is it possible to get an older version that supports it?
Hello,
Please read in wiki how to install RO into Delphi 6:
http://wiki.remobjects.com/wiki/Install_into_Delphi_6
Hello,
I had actually followed the instructions listed in the wiki to a tee (I hope), before I asked the question. My initial assumption was that Delphi6 had been dropped hence the error which I do not get on XE2
Hello,
Thanks, the issue was logged as #55019
As a workaround please move declarating of class TRODataSnapSimpleAppServer to interface section in uRODataSnapProviderPublisher.pas
Thanks for the suggestion, that worked. In fact I managed to build all the dpks for RO SDK after peppering a few files with {$IFDEF}s to accommodate delphi6. Having moved on to DA I am now struggling with following error when building the DataAbstract_Core_D6 package. “[Fatal Error] DataAbstractService_Impl.pas(2682): Internal error: URW699”
Hello,
As a workaround you should remove int64 typecasts.
Please modify DataAbstractService_Impl.pas file:
function TDataAbstractService.ConvertFromSimple(aValue: UTF8String;
aDataType: TDADataType): variant;
var
…
datFixedWideChar, datWideString, datWideMemo: Result := aStr;
datLargeUInt: Result := {$IFDEF Delphi7UP} Uint64{$ENDIF}(StrToInt64Def(aStr,0)); //<==FIXED
Hello,
Thank you very much for your help. I managed to get DA building successfully. Here is the additional stuff I had to do to get it going, I would like to get your opinion
uDAActiveScriptProvider.pas
Added :
function VarArrayAsPSafeArray
function GetVarDataArrayInfo
uDASpiderMonkeyAPI.pas
Added:
{$IFDEF DELPHI6}
Uint64 = int64;
{$ENDIF}
uDAEcmaScriptWrappers.pas
{$TYPEINFO ON}
{$IFDEF DELPHI7UP} <=== Added
{$METHODINFO ON}
{$ENDIF}
TDAEcmaBaseScriptObject = class;
TDAEcmaJSONSupport = class;
{$TYPEINFO OFF}
{$IFDEF DELPHI7UP} <=== Added
{$METHODINFO OFF}
{$ENDIF}
Hello,
You can use this solution.