如何将C ++ COM连接到WCF服务 [英] How to connect a C++ COM To a WCF Service

查看:165
本文介绍了如何将C ++ COM连接到WCF服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一种方法来连接COM +传统应用程序到WCF服务,我一直在研究这个,因为几天,我很幸运找到任何有用的信息,任何人都可以指向我正确的方向在这个?



我需要旧的 COM +组件来调用一个新的C#WCF服务,所以我需要某种代理



感谢您提供帮助。

div class =h2_lin>解决方案

WCF服务标记可以为您的WCF服务自动生成COM代理。您的C ++代码可以直接调用此代理,而无需您编写任何C#代理代码或显式COM互操作代码。



查看 http://msdn.microsoft.com/en-us/library/ms729739(VS.85) .aspx 了解详情。



我特别推荐此功能,主要是因为我拥有Microsoft的功能。


I'm looking to a way to connect a COM+ legacy application to a WCF Service, i have been researching this since a couple of days and i haven been lucky to find any useful information, can anyone point me into the right direction on this?

I Need the old COM+ component to make calls to a new C# WCF Service so I Need some kind of proxy in the COM Component that abstracts the communication with the Service.

Thanks in advance, i really appreciate any help.

解决方案

The WCF service moniker can auto-generate a COM proxy for your WCF service. Your C++ code can call this proxy directly without the need for you to write any C# proxy code or explicit COM interop code.

Look at http://msdn.microsoft.com/en-us/library/ms729739(VS.85).aspx for details.

I particularly recommend this feature primarily because I owned the feature at Microsoft.

这篇关于如何将C ++ COM连接到WCF服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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