Welcome, Guest
Username: Password: Remember me
Discussions for CodeTyphon Studio Installation and Setup.
  • Page:
  • 1

TOPIC:

install Unidac 6.4.14 get error! 8 years 4 days ago #10269

  • wylton
  • wylton's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 2
  • Thank you received: 0
CREditor.pas(295,37) Error: Illegal type conversion: "Variant" to "NativeInt"


{$IFDEF CLR}
Obj := GetObjectProp(Control, PropInfo) as TPersistent;
{$ELSE}
Obj := TPersistent(NativeInt(GetPropValue(Control, string(PropList.Name))));
{$ENDIF}

if (Obj <> nil) and (Obj.ClassName <> 'TMemoStrings'{$IFDEF CLR}{$IFDEF VER9P} + '$StdCtrls'{$ENDIF}{$ENDIF}) then begin
Assert(Obj is TPersistent);
{$IFDEF CLR}
NewObj := GetObjectProp(NewControl, PropList.Name) as TPersistent;
{$ELSE}
NewObj := TPersistent(NativeInt(GetPropValue(NewControl, string(PropList.Name)))); //////line 295

<<<<<<<<<<<<<<<<
{$ENDIF}

install on Lazarus 1.6 don't have same problem.

Please Log in or Create an account to join the conversation.

  • Page:
  • 1