我可以将.NET框架组件用作MFC应用程序中的工具箱项吗? [英] Can I use .NET framework components as toolbox items in an MFC app?

查看:62
本文介绍了我可以将.NET框架组件用作MFC应用程序中的工具箱项吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个MFC应用程序,并想知道我是否可以将.NET框架组件添加到我的窗口。 ..

I have an MFC app and was wondering if I can add .NET framework components to my windows...

谢谢,

Juan

Juan Dent

Juan Dent

推荐答案

嗨Juan Dent,

Hi Juan Dent,

感谢发布在这里。

>>我有一个MFC应用程序,并想知道我是否可以将.NET框架组件添加到我的窗口......

MFC将Windows窗体控件作为一种特殊的ActiveX控件托管,并使用ActiveX接口与控件进行通信,以及
的属性和方法
控件
类。我们建议您使用.NET Framework属性和方法来操作控件。

MFC hosts a Windows Forms control as a special kind of ActiveX control and communicates with the control by using ActiveX interfaces, and properties and methods of the Control class. We recommend that you use .NET Framework properties and methods to operate on the control.

有关详细信息,请参阅此链接。

For more information, please refer to this link.

< a href ="https://msdn.microsoft.com/en-us/library/94t3ebxz.aspx"> https://msdn.microsoft.com/en-us/library/94t3ebxz.aspx

对于显示与MFC一起使用的Windows窗体的示例应用程序,请参阅
MFC和Windows窗体集成

For a sample application that shows Windows Forms used with MFC, see MFC and Windows Forms Integration.

此处还有一个关于Integration .NET Component到您的Native MFC应用程序的示例参考。

Here also a sample about Integration .NET Component into your Native MFC Application for you as a reference.

http://www.codeproject.com/Tips/884369/Integration-NET-Component-into-your-Native-MFC-App

希望这可能有助于你好。

Hope this could be help of you.

最好的问候,

Sera Yu


这篇关于我可以将.NET框架组件用作MFC应用程序中的工具箱项吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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