在C ++应用程序和Web应用程序之间进行通信 [英] Communicate between c++ applications and web applications

查看:151
本文介绍了在C ++应用程序和Web应用程序之间进行通信的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以实现从Web应用程序到C ++应用程序的通信(如函数调用)的各种方式?我已经开发了c ++应用程序来进行图像处理,并希望将结果实时显示并传输到浏览器上显示的网页。

What are the various ways I can achieve communication (like function calls) from a web application to a c++ application? I've developed the c++ application to do image processing and want to display and transmit the result in real time to a web-page displayed on a browser.

推荐答案

所有内容都不会传输到网络浏览器。 Web浏览器必须询问,然后您可以使用要显示的数据进行响应。按照@The MYYN,您只需让C ++代码删除合适的文件,浏览器便可以要求它们。或者,您可以设置某种Web应用程序。

Nothing will 'transmit to a web browser'. Web browsers have to ask, and then you can respond with the data you want to display. As per @The MYYN, you can just have the C++ code drop suitable files and the browser can ask for them. Or, you can set up some sort of webapp.

如果使用Ajax,则可以让浏览器轮询要显示的内容,然后再显示它们。这不是一个简单的体系结构。

If you use Ajax you can get the browser to poll for things to show and then show them. It's not a simple architecture.

这篇关于在C ++应用程序和Web应用程序之间进行通信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆