Subj : Re: Need to translate one line of Delphi to CPP To : borland.public.cpp.borlandcpp From : " Bruce Salzman" Date : Fri Nov 21 2003 09:27 pm > This is the only line that's got me confused: > SendMessage(winHandle, WM_COPYDATA, Self.Handle,Integer (@CopyDataStruct)); > > What's up with Self.Handle? The MS SDK docs for winuser.h bundled with Delphi explain the third param of SendMessage this way: > > wParam : Specifies additional message-specific information. > You'd do better asking this in borland.public.cppbuilder.vcl.components.using That being said, is SendMessage being called in the context of a TForm? Then Self.Handle is the form's Window's handle (HWND). Regards, Bruce .