|
Use
WM_COPYDATA to send strings or other data to another
application.
sample code:
var
CopyData :TCopyDataStruct;
s :String;
begin
s:= 'Some string.....';
CopyData.dwData:= ; //Message that identifies the data
attached, can be any cardinal value meaningfull to the other app.
CopyData.cbData:= Length(s); //Size of the memory to be shared CopyData.lpData:= PChar(s); //Address of the memory to be shared SendMessageTimeout(DestHWND, WM_COPYDATA, Self.Handle,
LongInt(@CopyData), SMTO_NORMAL, timeout, result);
end;
Hope
that helps
_______________________
|
- [DUG]: Sharing strings in 2 applications Ross Levis
- RE: [DUG]: Sharing strings in 2 applications Jeremy Coulter
- Allan Vergara
