Romain

Romain

  • 1.9k
  • 38
  • 20.5k

Interaction between ASP.NET and C++ executable

Oct 16 2020 6:34 AM

Good morning,

I am working on an application which mix ASP.NET/C# and launching an executable written in C++ and I need some help in order to establish a communication between C++ and ASP.NET.

See below the architecture of the application :

 

  • A ASP.NET application which is using .NET 4.7.1 (it is not ASP .NET Core).
  • Several C# Dlls which contain some methods for interfacing
  • a C++/CLI dll which makes a bridge between C# dlls and C++
  • a C++ executable.

 

The interaction between the different bricks is as follows :

ASP.NET application is launched in a browser and by clicking a button the executable is launched. The executable is launched by using a CreateProcess in a C++ lib. It works fine but now I would like to send some progression and messages from the executable to the ASP application. I have thinking about named pipes, what do you think ? Should the executable be launched in C# side ?

Thank you in advance for your help.

 Romain. 

Brought to you by: