Someone managed to install InstantObjects in Delphi XE4?
I'm compiling the latest sources who are on svn repository. After correcting some issues as the compiler version, I am stuck in the following code snippet:
procedure TInstantAccessor.SetOnCompare(Value: TInstantCompareObjectsEvent);
begin
if @Value <> @FOnCompare then
begin
FOnCompare := Value;
RefreshView;
end;
end;
Resulting in the error message "[dcc32 Error] InstantPresentation.pas (1580): E2008 Incompatible types" on the line:
if @Value <> @FOnCompare then
But they are the same type: TInstantCompareObjectsEvent
What's wrong?
@
, the compiler won't compile because it would expect the functions to be called. Flavio, have you double checked the {T} compiler directive? More info here: docwiki.embarcadero.com/RADStudio/XE4/en/… - Fabricio Araujo