托管WCF服务的C ++/CLI Windows窗体应用程序

问题描述:

我是WCF的新手.我的问题是没有人可以指出一个示例,其中C ++/CLI Windows Froms应用程序托管WCF服务.

I''m new to WCF. My question does anybody can point me to an example where C++/CLI Windows Froms Application is hosting WCF service.

哦,男孩!当然,任何简单的.NET语言都可以自托管WCF服务!所有.NET语言在功能上或多或少都接近,因为最少的功能集应满足代表完整的.NET功能和库的要求所产生的要求.

了解有关WCF自托管的信息:
http://msdn.microsoft.com/en-us/library/ee939340.aspx [ ^ ].

请查看此CodeProject文章:
创建,托管(自助托管,IIS托管)和使用WCF服务 [
—SA
Oh, boy! Of course, any non-trivial .NET language can self-host WCF service! All .NET languages are more or less close in features, because the minimal set of features should cover requirements stemmed from the requirement to represent full set of .NET features and libraries.

Read about self-hosting of WCF:
http://msdn.microsoft.com/en-us/library/ee939340.aspx[^].

Pleas see this CodeProject article:
Create, Host (Self Hosting, IIS hosting) and Consume WCF Service[^].

Unfortunately, I could not find C++/CLI code samples (again, I mean C++/CLI, not obsolete "managed C++"), but you can simple translate C# code samples, after all. C++/CLI is quite capable of handling all you need for WCF.

—SA