InterProcessCommunication

V

victor

Hi,
I'm working on a project involving .NET Frwk and legacy MFC app's.
Within the MFC sub-project there exists several IPC's, using
FindWindow and then PostMessage; they all works fine.
My situation is: I need to 'enter' the legacy world with my .NET app,
and send a message (2 bytes) to one of the MFC app.
Is there an equivalent of the MFC PostMessage in the Framework?
Welcoming your advise/expertise.
;-) Victor
 
R

Richard Blewett [DevelopMentor]

Hi,
I'm working on a project involving .NET Frwk and legacy MFC app's.
Within the MFC sub-project there exists several IPC's, using
FindWindow and then PostMessage; they all works fine.
My situation is: I need to 'enter' the legacy world with my .NET app,
and send a message (2 bytes) to one of the MFC app.
Is there an equivalent of the MFC PostMessage in the Framework?
Welcoming your advise/expertise.
;-) Victor

I think you'll have to use P/Invoke to hit the PostMessage Win32 API

Regards

Richard Blewett - DevelopMentor
http://www.dotnetconsult.co.uk/weblog
http://www.dotnetconsult.co.uk
 
V

victor

Right, thanks Richard.
This will work. I was hoping for a real .NET-equivalent of the API's,
while I'm not so fond of writing the Interop code.
Thanks for your time.
;-) V
-------------------------------------------------------------------------------------
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top