Patch : clearer definition of makeintresource
Original Reporter info from Mantis: roozbeh
-
Reporter name: roozbeh gholizadeh
Original Reporter info from Mantis: roozbeh
- Reporter name: roozbeh gholizadeh
Description:
Summary :
"MakeIntResource" was previously declared as function in win32 and
wince,windows.pp files,also we had one declared in rtl\resh.inc as pchar
and also there was some uses of it just as pchar in classes.
All these makes some problems in lazarus,as we cant have constants
declared as arrays of makeintresource and things like this.
Obviously makeintresource is just a type definition,so instead of this
function
function MAKEINTRESOURCE(i : longint) : LPTSTR;
begin
MAKEINTRESOURCE:=LPTSTR(DWORD(WORD(i)));
end;
it could be changed into pchar(LPSTR) or pwidechar(lpwcstr).
and making all current functions being declared as constants.
I suggest the same changes also to win32.
Additional information:
it does some changes to objpas,inc and wince dir.
objpas and inc changes dont break other systems.
i also suggest making same changes done in wince to win32
Mantis conversion info:
- Mantis ID: 8375
- Fixed in version: 2.2.0
- Fixed in revision: 6621 (#d5d37793)