用VS.NET构建OCX? [英] Building an OCX with VS.NET?

查看:95
本文介绍了用VS.NET构建OCX?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

OCX发生了什么?不再可以使用最新工具来创建它们吗?

What happened to OCX's? Are they no longer possible to create with the latest tools?

我需要创建一个ActiveX控件,该控件可以放置在Word,PowerPoint和Excel文档中.如果使用VS.NET,则只能使用COM Interop创建UserControl DLL,但我认为我无法使用PowerPoint开发人员"选项卡的更多控件"工具箱来添加它.

I need to create an ActiveX control that I can place in Word, PowerPoint and Excel documents. If I use VS.NET, I can only create a UserControl DLL with COM Interop, but I don't think I can add that using the "More Controls" toolbox of PowerPoint's Developer Tab.

你会做什么?

推荐答案

是的,您仍然可以创建它们.但是您不能使用.NET语言创建OCX.需要不受管理的C ++(或VB).您可以在C#或VB.NET中创建的具有COM互操作的DLL只是通过CCW调用的.NET对象.

Yes, you can still create them. But you can't create an OCX with a .NET language. Need to be unmanaged C++ (or VB). The DLLs with COM interop you can create in C# or VB.NET are just .NET objects that are invoked via CCW.

这篇关于用VS.NET构建OCX?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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