现在的位置: 首页 > 综合 > 正文

一边是.net一边是windows api怎么办?解决办法:managed c++

2012年02月12日 ⁄ 综合 ⁄ 共 398字 ⁄ 字号 评论关闭

从wiki上查得:
It is the only language that can communicate directly with .NET languages (such as C#, VB.NET) and native C++. The other .NET languages can only communicate with C++ code via PInvoke or COM. But since Managed C++ can communicate directly in both managed and unmanaged contexts, it is often used as a "bridge".

managed c++是唯一可以与.net和native c++进行通讯的语言,其他.net语言只能通过Pinvoke等调用native代码。所以在你的项目中,通常可以把managed c++代码作为一个“桥“来使用,沟通C#和其他的c++代码,包括windows api

【上篇】
【下篇】

抱歉!评论已关闭.