Re: [lazarus] Patch for processing WM_COPYDATA in Win32 / BugID 9210
Lukas Gradl wrote: > I, for example, needed it to talk to some external application > remote-controlled by WM_COPYDATA - that's why I tracked down the way of > the message and submitted this patch. > > I'm not quite shure if we need it in other interfaces too - it's a > windows-specific message. This is my point, it's best to find a way to offer a cross-platform interface for this if possible. I've no experience using WM_COPYDATA so can't really comment much here. Micha _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Patch for processing WM_COPYDATA in Win32 / BugID 9210
Micha Nelissen wrote: Felipe Monteiro de Carvalho wrote: On Jan 16, 2008 8:02 PM, Lukas Gradl <[EMAIL PROTECTED]> wrote: Some time ago I reported a problem with sending WM_COPYDATA-Messages under windows: http://bugs.freepascal.org/view.php?id=9210 Did you ever test with the PassWin32MessagesToLCL define: http://wiki.lazarus.freepascal.org/LCL_Defines#Win32_defines WM_COPYDATA is not a User message I think. WM_COPYDATA is part of an IPC mechanism, which needs a general implementation in the LCL, with specifics in win32, gtk, qt etc.. Right, WM_COPYDATA is not a user message - I never assumed that. But it's a Message widley used in Windows, so Lazarus has to support it for many cases. I, for example, needed it to talk to some external application remote-controlled by WM_COPYDATA - that's why I tracked down the way of the message and submitted this patch. I'm not quite shure if we need it in other interfaces too - it's a windows-specific message. regards Lukas -- software security networks Lukas Gradl Eduard-Bodem-Gasse 9 A - 6020 Innsbruck Tel: +43-720-300168-0 Fax: +43-512-341033-19 _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Patch for processing WM_COPYDATA in Win32 / BugID 9210
Felipe Monteiro de Carvalho wrote: > On Jan 16, 2008 8:02 PM, Lukas Gradl <[EMAIL PROTECTED]> wrote: >> Some time ago I reported a problem with sending WM_COPYDATA-Messages >> under windows: >> http://bugs.freepascal.org/view.php?id=9210 > > Did you ever test with the PassWin32MessagesToLCL define: > http://wiki.lazarus.freepascal.org/LCL_Defines#Win32_defines WM_COPYDATA is not a User message I think. WM_COPYDATA is part of an IPC mechanism, which needs a general implementation in the LCL, with specifics in win32, gtk, qt etc.. Micha _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Patch for processing WM_COPYDATA in Win32 / BugID 9210
Felipe Monteiro de Carvalho schrieb: On Jan 16, 2008 8:02 PM, Lukas Gradl <[EMAIL PROTECTED]> wrote: Some time ago I reported a problem with sending WM_COPYDATA-Messages under windows: http://bugs.freepascal.org/view.php?id=9210 Did you ever test with the PassWin32MessagesToLCL define: http://wiki.lazarus.freepascal.org/LCL_Defines#Win32_defines ? In recent subversion Lazarus user messages are activated by default (the define I mentioned above no longer exists), could you test if this solves your problem without the patch? Already done that - it has no influence on WM_COPYDATA. regards Lukas -- software security networks Lukas Gradl Eduard-Bodem-Gasse 9 A - 6020 Innsbruck Tel: +43-720-300168-0 Fax: +43-512-341033-19 _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Patch for processing WM_COPYDATA in Win32 / BugID 9210
On Jan 16, 2008 8:02 PM, Lukas Gradl <[EMAIL PROTECTED]> wrote: > Some time ago I reported a problem with sending WM_COPYDATA-Messages > under windows: > http://bugs.freepascal.org/view.php?id=9210 Did you ever test with the PassWin32MessagesToLCL define: http://wiki.lazarus.freepascal.org/LCL_Defines#Win32_defines ? In recent subversion Lazarus user messages are activated by default (the define I mentioned above no longer exists), could you test if this solves your problem without the patch? -- Felipe Monteiro de Carvalho _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] Patch for processing WM_COPYDATA in Win32 / BugID 9210
Some time ago I reported a problem with sending WM_COPYDATA-Messages under windows: http://bugs.freepascal.org/view.php?id=9210 As far as I could find the function WindowProc in win32callback.inc eats up the message so it never reaches the MessageHandler defined in the app. So I changed LCL\interfaces\win32\win32callback.inc This is the diff-File: Index: win32callback.inc === --- win32callback.inc (revision 13779) +++ win32callback.inc (working copy) @@ -1141,6 +1141,13 @@ Assert(False, Format('Trace:WindowProc - Window Value: $%S-%d; Msg Value: %S; WParam: $%S; LParam: $%S', [IntToHex(Window, 4), Window, WM_To_String(Msg), IntToHex(WParam, sizeof(WParam)*4), IntToHex(LParam, sizeof(LParam)*4)])); case Msg of + WM_COPYDATA: // passthrough of WM_COPYDATA-Messages + begin + LMessage.Msg := Msg; + LMessage.WParam := WParam; + LMessage.LParam := LParam; + WinProcess := false; + end; WM_ACTIVATE: begin case LOWORD(WParam) Of regards Lukas -- software security networks Lukas Gradl Eduard-Bodem-Gasse 9 A - 6020 Innsbruck Tel: +43-720-300168-0 Fax: +43-512-341033-19 _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives