[lazarus] double declaration in LCLtype

Darek Mazur darekm at emadar.com
Fri Nov 14 14:43:11 EST 2003


Double declaration in LCLTYPE cause error in compile win32callback.ini (i
don't remember which unit - best practice is retype name of main unit in top
and bottom of include file)

I try change declaration to:

type
 {$IFNDEF win32}<-----

  PNMHdr = ^TNMHdr;
  tagNMHDR = packed record
    hwndFrom: HWND;
    idFrom: UINT;
    code: UINT;
  end;
  TNMHdr = tagNMHDR;
  NMHDR = tagNMHDR;
 {$ELSE}  <---
  PNMHdr = windows.PNMHDR;  <---
  TNMHdr = windows.TNMHDR; <----
 {$ENDIF} <----


Darek






More information about the Lazarus mailing list