C# and C++ communication

  • Thread starter Thread starter Steph
  • Start date Start date
S

Steph

Hi,

I have an application in C++ that runs on different client computers. I need
to develop an application in C# on the server that sends parameters to the
client application (in C++). What is the best solution to make the
application in C# communicate with the application in C++ ?

I also need to make sound navigate between the two applications (the client
users (C++) speak in a microphone and the server user (C#) has to listen to
it). What is the best solution again ?

Thanks !
 
Steph said:
Hi,

I have an application in C++ that runs on different client computers. I
need
to develop an application in C# on the server that sends parameters to the
client application (in C++). What is the best solution to make the
application in C# communicate with the application in C++ ?

I have been doing a lot of this lately through COM with good success. DotNet
has some really good facilites for this through ComInterop. In fact at
present, I am writing a server in C# that speaks DCOM, .Net Remoting, and
raw sockets. I have been surpised at the ease with which I am able to do
this (kudos to .Net). That being said, COM is many headed beast and unless
you are already familar with it, I would recommend caution in this approach.
It is a substancial learning curve.
I also need to make sound navigate between the two applications (the
client
users (C++) speak in a microphone and the server user (C#) has to listen
to
it). What is the best solution again ?

You might look into some of the streaming media technologies that DirectX
has to offer. It is COM based, but there is a watered down version available
in the managed world refered to as Managed DirectX. It might just do the
trick.
 
Hi,

Thanks for answering.
And what about using sockets for both points (voice/sound and datas) ? For
the datas, i could use a flag to know wich parameter is sent?
Does that sound good to you ?

Someone talks about using WebServices too. What do u think about this ?

Thanks for taking time.
 
You can design your own specific protocol and communicate with client
through sockets.

Again, data from microphone can be transferred via sockets to/from clients.
The only challenge is to design efficient transfer protocol and implement
network server and client.
 

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

Back
Top