formi
asked on
Delphi XE2, CreateBrushIndirect incompatible type
Hi
I installed Delphi XE2 and try to compile an old project. Now I have the following problem:
In the old project there is code like
procedure JustAsample;
var
Data: PEMRCreateBrushIndirect;
xx : int64;
begin
xx := CreateBrushIndirect(Data^. lb);
end;
the compiler now says: "incompatible type tagLogBrush and tagLogBrush32." Same error it doesn't matter if I compile 3bit or 64bit.
The CreateBrushIndirect-proced ure is definied in winapi.windows-unit and I really can see that there are different types. Is that a bug from that unit and how can I solve it?
Thanks for your help, Peter
I installed Delphi XE2 and try to compile an old project. Now I have the following problem:
In the old project there is code like
procedure JustAsample;
var
Data: PEMRCreateBrushIndirect;
xx : int64;
begin
xx := CreateBrushIndirect(Data^.
end;
the compiler now says: "incompatible type tagLogBrush and tagLogBrush32." Same error it doesn't matter if I compile 3bit or 64bit.
The CreateBrushIndirect-proced
Thanks for your help, Peter
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.