Re: HWND_BROADCAST
From: Gary Nastrasio (noemail_at_please.com)
Date: 09/02/04
- Next message: Randy Pitkin: "Error Messege Help CDO.Configuration / CDO.Messege"
- Previous message: Eric: "Re: MAPI property value"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 02 Sep 2004 14:21:35 -0400
You can't send pointers across processes because the pointer value in
process a (PA) has no meaning in process b (PB) because each process
exists in its own virtual address space. For example, PA can have a
stack data structure starting at 0x12345678, while PB can (and most
definitely will) have something completely different at its own
0x12345678 address. If you need your processes to communicate there are
a few methods you can use:
I can't help you with the WM_SETTEXT message though, MSDN says LPARAM is
a pointer to your string, which again is only valid to your current process.
HTH,
Gary.
Sada wrote:
> Hi All,
>
> I want to send pointers accross the process by using the
> Message HWND_BROADCAST.I read at many places that you
> cannot send the pointer accross the processes.I tried to
> send a simple string using the HWND_BROADCAST and using a
> registered message I am not able to get the String
> properly in another Process.But if iam using just
> WM_SETTEXT Message instead of userdefined message iam able
> to receive the String can anyone tell me whats the
> difference between the 2 messages.
> Also i would like to know if there is any way we can send
> pointers accross process a sample would be appreciated.
>
> thanks in advance
> cheer,
> Sadashiv
- Next message: Randy Pitkin: "Error Messege Help CDO.Configuration / CDO.Messege"
- Previous message: Eric: "Re: MAPI property value"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|