Board index » cppbuilder » Broadcasting String to All Applications
JP
![]() CBuilder Developer |
JP
![]() CBuilder Developer |
Broadcasting String to All Applications2004-08-25 10:23:01 PM cppbuilder44 Hello, I am trying to figure out how to broadcast a string out to all applications running on windows 2000! If an one has any ideas that would be great |
Ed Mulroy [TeamB]
![]() CBuilder Developer |
2004-08-26 12:26:02 AM
Re:Broadcasting String to All Applications
What do you mean by "string"?
If you mean an array of characters, then you cannot "broadcast a string". What you can do is broadcast a message (perhaps with BroadcastSystemMessage or by doing a SendMessageCallback with a window handle of HWND_BROADCAST) and, upon receiving a reply from a window, post a WM_COPYDATA message containing the data in the array. You must use the copy data step because the address your program has for the string is a virtual address, unique to your program and invalid if used by other programs. . Ed QuoteJP wrote in message |
JD
![]() CBuilder Developer |
2004-08-26 05:22:26 AM
Re:Broadcasting String to All Applications
"JP" < XXXX@XXXXX.COM >wrote:
QuoteHello, I am trying to figure out how to broadcast a string out to all If another application is using custom messages and they didn't register (and you as well) a unique message with windows, your broadcast could cause another program to think that it sent it's self a message which would cause it act on a bogus message. ~ JD {smallsort} |