开发者

Difference between .ocx file and a .Net Control

What is the difference between an .OCX file c开发者_StackOverflowreated in MFC or VB and a .Net control created in C#?

  1. Is it possible to use the .Net Control in a MFC application?

  2. I have a dialog in C# I need to use the same dialog in MFC.whether can I import the entire dialog into Mfc ,or can i save my C# application as .OCX file and use it in MFC?


The main difference: .ocx is unmanaged because MFC is unmanaged, .NET controls are managed (if you don't try to use MFC in .NET, or other unmanaged stuff).

I think you can't save your .NET app as .ocx file, at least there is no standard way to do this, but you can still use .NET controls in C++ because they can be registered for COM interop.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜