Compilation for WinCE broken by revision 43069 (graphics.pp)
Original Reporter info from Mantis: Bart @flyingsheep
-
Reporter name: Bart Broersma
Original Reporter info from Mantis: Bart @flyingsheep
- Reporter name: Bart Broersma
Description:
While trying to cross compile (win32->wince, fpc 2.6.4RC1) I got
C:\devel\lazarus\lcl\graphics.pp(2805,80) Error: Incompatible type for
arg no. 3: Got "PChar", expected "PWideChar"
2789 function CreateBitmapFromResourceName(Instance: THandle; const
ResName: String): TCustomBitmap;
2790 var
2791 ResHandle: TFPResourceHandle;
2792 Stream: TResourceStream;
2793 GraphicClass: TGraphicClass;
2794 begin
2795 ResHandle := FindResource(Instance, PChar(ResName), PChar(RT_BITMAP));
2796 if ResHandle <> 0 then
2797 begin
2798 Result := TBitmap.Create;
2799 Result.LoadFromResourceName(Instance, ResName);
2800 Exit;
2801 end;
2802 ResHandle := FindResource(Instance, PChar(ResName), PChar(RT_RCDATA));
2803 if ResHandle <> 0 then
2804 begin
2805 Stream := TResourceStream.Create(Instance, PChar(ResName),
PChar(RT_RCDATA)); <<== Error on this line
Additional information:
Possible fix attached.
Mantis conversion info:
- Mantis ID: 25512
- OS: Window
- OS Build: Win7
- Build: r43552
- Platform: i386
- Version: 1.3 (SVN)
- Fixed in version: 1.4
- Fixed in revision: 43697 (#2dd21044)