I dont think CGI was the right choice (after having read your earlier question). At best, it's one of the possible ways, but your description of problem wasn't enough to conclude that CGI would be the best option.
Some questions:
- You said its an application and/or library. Which is it? Is it a dll? IF its just calling a dll function then that is possible even in ASP.NET and classic ASP ( I mean call directly, with some limitations perhaps ).
- What does your application do? Can you modify it?
>> any examples out there where poeple have connected to backend C++ applications from a website?
I don't recall an example, but it's easy of think of a Java Applet connecting to some backend server. It all depends upon how your application is written
- If the application is an HTTP server (has an HTTP server), then you can just POST or ajax calls to it using javascript etc. Adding HTTP server support to a C++ application is easily accomplished by the use of toolkits like POCO for example. If i'm not forgetting boost also has such features.
- If its just a dll/lib, then on IIS, you can write HTTP filters/handler (dlls loaded by IIS that do special work, like the one that does url rewriting). Those can take the HTTP request and delegate to the lib.
- You can even build a simple surrogate HTTP Server that can take requests and delegate to the dll (this is same as the first option above).
- CGI is also possible, but more suited if your application is accustomed to read from stdin and write to stdout. (a console application)
Note that in all of the cases and solutions given so far, the baseline idea is the use of HTTP to talk to the backend, because thats the most common possible way.