[fpc-devel] patch:more clear definition of makeintresource, clearer definitions in wince defines.inc

Roozbeh GHolizadeh roozbehid at yahoo.com
Wed Feb 14 12:23:58 CET 2007


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.
   
  regards,
  roozbeh
   

 
---------------------------------
Don't be flakey. Get Yahoo! Mail for Mobile and 
always stay connected to friends.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20070214/f47782b6/attachment.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: newpatch1.patch
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20070214/f47782b6/attachment.ksh>


More information about the fpc-devel mailing list