in reply to Can this be done?

If the c++ is relatively simple, and you can identify the external variables needed for input, then swig might be an alternative to InlineCpp. http://www.swig.org That would let you run it as cgi fairly easily.