Examples of using WM_COPYDATA or Sockets between C# and MFC

W

WAkthar

Hi,

I have a server application (MFC) which communicates through the serial
port.
I need to have a graphical user interface, in c#, which needs to communicate
with the server. At present the user interface is a very dull MFC dialog app
which communicates with the server via WM_COPYDATA.
How easy is it to write a new user interface in C# and communicate with the
server using WM_COPYDATA ?
We have a load of messages defined in C++ which needs to shipped between the
C# and the MFC components.

Would using sockets be more appropiate, easier ??

Thanks in advance !!
 
G

Guest

I'm just starting to play with C# and would like to build one that is remote
controlled by a good-old fashioned MFC app. I would actually prefer to use
WM_COPYDATA rather than mess around with sockets. (By the way, Microsoft
Pipes work really well too.)

If you have any WM_COPYDATA code samples for C# sharp, I would love to be
able to see some snippets.

Thanks.
 

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