Communicate between applications

S

SQACSharp

Hi,

I need to transfer text (or maybe binary) data from one .net
application to another .net application. What is the best way to do
this since it's on the same computer and both application may run
different .net framework version.

In a completely different project/context i also need to transfers
data between 2 applications, but this time one is a .net application
and the other is a Win32 application.

In both cases I dont want to use win32 SendMessage.

Thanks for suggestion or examples!
 
K

Kerem Gümrükcü

Hi,

in your scenario where you run different .net frameworks
and even different runtimes or programming languages i
would recommed the usage of sockets and/or some
windows api supported IPC mechanism like pipes or
shared memory. You said that you dont want to use
SendMessage, so you wont get the chance to use
something like WM_COPYDATA which is very fast
and reliable on a single computer and if your work with
windowed applications, but difficult to use when your
application runs in different desktops stations or when
running as service (this is also a different ds if you run
it non interactive!)

To be sure and use a reliable communication use TCP
Sockets in your application, since this makes your applications
also run cross-boundary like making it possible to run it
on another machine over a network or even over the
internet,....thats what i recommend...

But if you target the 3.5 NFW you can use WPF and
all the new technologies to communicate between
applications.


Regards

Kerem



--
 

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