Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2006 May : Using WM_COPYDATA

www.cryer.info
Managed Newsgroup Archive

Using WM_COPYDATA

Subject:Using WM_COPYDATA
Posted by:"Paul" (paul.blommaer..@telenet.be)
Date:Mon, 1 May 2006 19:39:56 +0200

Hi,

I used the WM_COPYDATA message to send strings between 2 applications.
This works fine, but I am rewiting the receiver application, creating the
form with API.
The WM_COPYDATA message is received, but I can't get to the TWMCopyData
structure.
In a normal application, the message can be received in the declered
procedure :

    procedure WMCopyData(var Msg: TWMCopyData); message WM_COPYDATA;


When a Form is created using API, you can assign it a WndMsgProc as

function WndMsgProc(hWnd: HWND; Msg: UINT; WParam: WPARAM; LParam: LPARAM):
UINT; stdcall;

How can I read the data in this situation ?

Paul

Glossary

Replies:

www.cryer.info
Managed Newsgroup Archive