I built a desktop WPF C# application for some purpose. The C# application calls functions in another C++ application and the results from the C++ application were exposed back to the C# application. The application is working fine, but I intend to take same functionality to the web (ASP.NET)
Can I use the same kind of thing that I used in my desktop solution? Can the ASP.NET application call a function into a C++ project, and get back the results from the C++ application? DllImport[CallingConvention = CDecl, CharEncoding=Ansi]
EDIT–
My primary concern is that when I issue function call to C++ application, it takes 5 seconds for the C++ function to do its processing. During this time, the C# application can be considered to be have a froze GUI. What would happen in similar case in the ASP.NET website? Would it be a mess because of multi-threading and all?
Yes, ASP.NET application can use DllImport mechanism.