HellSlayer
asked on
PostMessage... GetMessage???
I want the new instance of an app to send a message to the old one.
For example I start MyProg by clicking "first.txt". After that I click on "second.txt" and I want the new MyProg to do something like :
PostMessage(oldMyProgHandl e, WM_COMMAND, 0&, "second.txt")
But how do I Get the message ??
For example I start MyProg by clicking "first.txt". After that I click on "second.txt" and I want the new MyProg to do something like :
PostMessage(oldMyProgHandl
But how do I Get the message ??
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Really cool sample without any API !!!
HOWTO: Build a Windows Message Handler with AddressOf in VB
http://support.microsoft.com/support/kb/articles/q170/5/70.ASP?LNG=ENG&SA=MSDN&FR=0
HOWTO: Pass String Data Between Applications Using SendMessage
http://support.microsoft.com/support/kb/articles/Q176/0/58.ASP?LNG=ENG&SA=MSDN&FR=0
HOWTO: Hook Into a Window's Messages Using AddressOf
http://support.microsoft.com/support/kb/articles/Q168/7/95.asp?LNG=ENG&SA=MSDN&FR=0
Cheers!®©