Subj : Re: Need to translate one line of Delphi to CPP To : borland.public.cpp.borlandcpp From : "Dennis Jones" Date : Sat Nov 22 2003 09:55 am " Bruce Salzman" wrote in message news:3fbed7a3$1@newsgroups.borland.com... > > This is the only line that's got me confused: > > SendMessage(winHandle, WM_COPYDATA, Self.Handle,Integer > (@CopyDataStruct)); > > > > What's up with Self.Handle? 'Self' in Delphi is the same as 'this' in C++ -- it is a pointer to the current object. Thus, in C++ you would write this message as: SendMessage( winHandle, WM_COPYDATA, this->Handle, (int)&CopyDataStruct ); - Dennis .