Communication between Visual C++ and Visual C# by means of WEBservices

  • Thread starter Thread starter Khalid
  • Start date Start date
K

Khalid

Hi all,
I have a problem. I have some DLLs developped with borland C++ and I
want to use them in a project that I want to develop in Visual Studio C
++. This project is only a "conosle" that offer some methods of these
DLLs. I want also to create antoher project with Visual Studio C# that
is the Graphical User Interfce of the first project developped in VS C+
+.
My problem is to create an architecture that make possible the
communication between VS C++ and VC C#, and I have thinked about web
services: GUI made with VC C# call some methods of Web Services
provided of VS C++ and application made with VS C++ call some methods
of Web Services in VS C# to refresh the GUI and so on...

It's a little bit complicated to explain, but hope it was clear.

I want, Please, some suggestions on how to make this possible and, if
available, a better solution.

Thank you very much
 
Khalid,

This seems like it is a bit much just to use some functionality in a C++
application. Are the components in the C++ app separated in such a way that
you could create a library out of them?

Why not compile them into a library and then create a managed wrapper
around it, or must the application run on the console and then the .NET app
access the running app?
 
Thanks for your answer...
Sincerly is a little bit complicated to explain you what I have in my
mind, but I will try:

Above all the problem is the type of data that I want to passe between
these two applications. The complete application that I want to create
consiste of two applications:
- the console developped with VS C++, that use some libraries
developped with Borland C++
- the GUI of application that interact with the console.

The GUI must access some methods included in libraries and exposed by
the console, and the internal libraries throught the core application
must interact with some methods of GUI, for example to refresh some
controls.

I have thinked to to link GUI with WebService "A" that communicate
with Console, and to link Console with WebService "B" that communicate
with GUI. In this way it's possible to make a bidirectional
communication.... But. But this is not very simple to do. And sincerly
I don't know how I can do it, above all because I don't know how I can
use the GUI/Console from the WebService.

Every suggestion/solution is welcome... and thanks in advance to all
those they want ot help me.

Khalid,

This seems like it is a bit much just to use some functionality in a C++
application. Are the components in the C++ app separated in such a way that
you could create a library out of them?

Why not compile them into a library and then create a managed wrapper
around it, or must the application run on the console and then the .NET app
access the running app?

--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)


Hi all,
I have a problem. I have some DLLs developped with borland C++ and I
want to use them in a project that I want to develop in Visual Studio C
++. This project is only a "conosle" that offer some methods of these
DLLs. I want also to create antoher project with Visual Studio C# that
is the Graphical User Interfce of the first project developped in VS C+
+.
My problem is to create an architecture that make possible the
communication between VS C++ and VC C#, and I have thinked about web
services: GUI made with VC C# call some methods of Web Services
provided of VS C++ and application made with VS C++ call some methods
of Web Services in VS C# to refresh the GUI and so on...
It's a little bit complicated to explain, but hope it was clear.
I want, Please, some suggestions on how to make this possible and, if
available, a better solution.
Thank you very much
 
Back
Top