本文介绍了asp.net web应用程序可以使用独立的VISUAL C ++应用程序进行通信?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 我可以集成一个asp.net网站使用Visual C ++独立的应用程序?请求应当从asp.net网站去VISUAL C ++应用程序和结果应该由asp.net网站使用?Can I integrate a asp.net website with Visual c++ standalone application?The request should go from asp.net website to visual c++ application and the result should be used by asp.net website?推荐答案您的问题实际上包括了部分答案。这两个进程,无论使用什么语言都写在后,他们将不得不在通信客户端 - 服务器的方式进行数据交换。因此,C ++的过程将必须充当服务器和ASP.NET作为客户端从服务器请求数据。Your question actually includes part of the answer. The two processes, regardless of the language they are written in, they would have to communicate exchanging data in a client-server fashion. Therefore, the C++ process would have to act as a server and ASP.NET as a client requesting data from the server.因此,可以建立一个 Web服务 后,无论是 SOAP 或的 REST 使用C ++和参考这个Web服务,通过您的ASP.NET程序要求从C ++服务器数据。 在这里,你可以找到如何教程使用C ++ 构建一个Web服务。 在这里,你可以找到关于Web服务的.NET教程。Therefore, you could build a web service, either SOAP or REST using C++ and reference this web service through your ASP.NET process asking for data from the C++ server. Here you could find a tutorial on how to build a web service using C++. Here you could find a .NET tutorial on web services.另外,简单,但结构化程度较低办法是使用像保管库,也许是文件或数据库。结果将被写入在跳马无论如何(即使他们不问,每当它想要的ASP.NET进程将检索它们。Another, simpler but less structured approach would be to use something like a vault, perhaps a file or a database. The results would be written in the vault anyway (even if they were not asked and the ASP.NET process would retrieve them whenever it wants.希望我帮助! 这篇关于asp.net web应用程序可以使用独立的VISUAL C ++应用程序进行通信?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云! 08-20 14:56