How do you expose an WinForms UserControl written in C# as an ActiveX control? My goal is to then use this UserControl from other languages such as VB6 or Delphi.
解决方案是使用Interop Toolkit,请参见http://msdn.microsoft.com/zh-cn/vbasic/bb419144和http://www.codeproject.com/KB/vb-interop/VB6InteropToolkit2.aspx 。
您将需要根据您的方向创建一个Runnable Callable Wrapper或COM Callable Wrapper 。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.