更新时间:2022-05-11 03:07:42
您的问题实际上包括了部分答案。这两个进程,无论使用什么语言都写在后,他们将不得不在通信客户端 - 服务器的方式进行数据交换。因此,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.
希望我帮助!