CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 1999
    Location
    Jerusalem, Israel
    Posts
    251

    Interprocess communication in VB

    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.

  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: Interprocess communication in VB

    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).


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured