----- Original Message -----
From: "Axel Heitland" <[EMAIL PROTECTED]>
Sent: Friday, April 26, 2002 05:23
Subject: Re: Send data with SendMessage



>I don't know if I remember correctly, but maybe a HGLOBAL allocated with
>GlobalAlloc(GHND) could give you a appropriate piece of memory; but
>that's long ago and maybe wrong advise.


my, my, another former win16 programmer...win32 merged GlobalAlloc and
LocallAlloc and they only work in a single process.

1. use a memory mapped file; map it into the same place or just send an
offset from the beginning...
2. only send WM_SETTEXT; the OS specially marshalls the LPARAM string into
the recipients memory for the duration of the call.

Alternatively, consider something like remoting, which serializes objects
nicely

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to