[Lazarus] SendMessage Bug Work Around.

José Mejuto joshyfun at gmail.com
Thu Apr 22 17:03:14 CEST 2010


Hello Lazarus-List,

Thursday, April 22, 2010, 3:21:01 PM, you wrote:

JS> if this is the case then delphi itself is doing something weird if i can
JS> send data from one application to another using Sendmessage ( the message
JS> being WM_COPYDATA )
JS> the same cant be said for lazarus/fpc

Well, WM_COPYDATA is the only way to do it in windows, but LCL
SendMessage is not Windows SendMessage. Lazarus LCL SendMessage is
designed to work with Lazarus LCL, as it must be cross platform. If
you need WM_COPYDATA then:

uses ..., Windows;

Windows.SendMessage(.....)

As only in Windows you can "SendMessage" to other process. In resume,
LCL SendMessage is to the LCL application (current only) and Windows
SendMessage is only for Windows systems.

-- 
Best regards,
 José





More information about the Lazarus mailing list