[lazarus] Unit MESSAGES

Darek Mazur darekm at emadar.com
Mon Nov 24 15:13:32 EST 2003


Hi
 I have problems with unit MESSAGES
are two unit with the same name
pp\units\rtl\win32
and
lazarus\lcl\nonwin32

WHY they have the same name
in compilation is very hard to discover which one is need
and compilations LMESSAGES under WIN32 and FPC1.9 cause curcular error

they are two solutions:
1. rename NONWIN32\MESSAGES to NONWIN32\NMESSAGE

or

2. move all stuff to LMESSAGES with conditional compilation:

{$IFDEF WIN32}
  uses messages;


  LM_DROPFILES     = WM_DROPFILES;

{$ELSE}
  LM_DROPFILES      = $0233;
  WM_DROPFILES     = LM_DROPFILES;

{$ENDIF}


Darek






More information about the Lazarus mailing list