HTML5和MFC应用程序可以相互交换数据吗? [英] Can HTML5 and MFC applications exchange data with each other ?
本文介绍了HTML5和MFC应用程序可以相互交换数据吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如果我在Android设备上运行基于html5的应用程序,并在计算机上运行基于c ++的MFC应用程序,它们是否能够通过SOCKET相互交换数据,而其中一个是Websocket而另一个是CSocket?
我尝试了什么:
我已经搜索了答案但是我还是找不到他们。如果答案是肯定的,那么我将学习如何做到。
解决方案
Web套接字似乎是一个很好的选择,适合你的情况。您可以使用许多C ++ Web套接字库,我使用过POCO websocket( Class Poco :: Net :: WebSocket [ ^ ])制定出来了细
If I run a html5-based application on an Android Device, and a c++-based MFC application on the computer, are they able to exchange data with each other through SOCKET while one is Websocket and the other is CSocket?
What I have tried:
I've searched for the answer but I still cannot find them. If the answer would be yes then I will learn to make it.
解决方案
Web socket seems to a good option to work with in you situation. There are many C++ web socket libraries which you can use, I have used POCO websocket(Class Poco::Net::WebSocket[^]) which worked out fine.
这篇关于HTML5和MFC应用程序可以相互交换数据吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文