Subclassed Communciation two vB6 apps
I am attempting to SubClass two VB6 apps. I created a custom window message
via RegisterWindowMessage (same) on both apps.
I then use PostMessage api on App1 and expect App2 to see it.
However, App2 never reponds that it sees the message. I have a test that
picks up the Time Change in App2 if you change the system time manually. So
I know App2 code is working for Standard window Messsages.
Something must be wrong in the way I am trying to post the message or the
way app2 trys to see the message.
What could I be doing wrong? Now, I did not subclass the sender app. Could
this be the problem?
here's some App1 (sender) code
wmMsg = RegisterWindowMessage("ACAD2IMS") ' regsiter a new window
hWnd = FindWindow(vbNullString, WinName) ' this finds App2
(the receiving app)
rsp = PostMessage(hWnd, wmMsg, 0&, 0&) ' send the message
thanks for any help