VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Sending Unique Messages From one VB App To Another

by Nick Jones (1 Submission)
Category: Miscellaneous
Compatability: Visual Basic 5.0
Difficulty: Beginner
Date Added: Wed 3rd February 2021
Rating: (10 Votes)


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.

Rate Sending Unique Messages From one VB App To Another

Download Sending Unique Messages From one VB App To Another

Download Sending Unique Messages From one VB App To Another (36 KB)

Sending Unique Messages From one VB App To Another Comments

No comments have been posted about Sending Unique Messages From one VB App To Another. Why not be the first to post a comment about Sending Unique Messages From one VB App To Another.

Post your comment

Subject:
Message:
0/1000 characters