Roozbeh GHolizadeh schreef:
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 other functions being declared as constants.
I suggest the same changes also to win32.
Who is going to look after this patch?
Vincent
_______________________________________________
fpc-devel maillist - [email protected]
http://lists.freepascal.org/mailman/listinfo/fpc-devel