
Demonstrates how to communicate between your applications
by sending your own windows messages along with your
own variable. Properly commented code. I couldn't find a
similar program on VBC, so I thought I'd write this up.
Hope someone finds this useful.
The code includes 2 projects, 'a client' and a 'server'.
Using the RegisterWindowMessage API the server creates
a unique windows message, then through the FindWindow
API it checks to see if the 'client' is running. If it
is, it sends a message using SendMessageLong. The client
is subclassed and adds any messages it detects to a listbox.
The code is well commented, full explaining subclassing,
the API's it uses and why, so even a notice should be
able to understand all this.