Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2003-11

double declaration in LCLtype

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Darek Mazur

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

Reply by email