Subj : Need to translate one line of Delphi to CPP To : borland.public.cpp.borlandcpp From : "mikeb" Date : Fri Nov 21 2003 06:23 pm Hi, I'm trying to port a very simple Delphi app to CPP. I am *not* a win32 programmer and I am *not* a Pascal programmer -- but maybe one of you can make my day. 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. The window I'm making the call on does not have any documentation associated with it, only this single paltry example. Can somebody explain Self.Handle in a nutshell, and give me the equivalent call in CPP? Thanks, An exasperated but seasoned Java programmer who just wanted to toy with Java Native Interface .