Click to See Complete Forum and Search --> : Interprocess communication in VB


Jack Shainsky
February 20th, 2000, 08:06 AM
Hello!

I have 2 VB applications running simultaneously, and I need to send message from one of them to the other. I have no problem with registering the message with RegisterWindowMessage() API and sending it with SendMessage() or PostMessage() functions. But how can I handle recieving of such a message in VB application?
In other words, how can I get message not handled by VB framework in my VB program?

Thank you in advance,

Jack.

Lothar Haensler
February 21st, 2000, 01:38 AM
you need to subclass the form window that is supposed to receive the message and trap the message in that form window.
You can do it the hard way (SetWindowLong...), or use one of the free subclassing OCXs (msghook.ocx or subclass.ocx).