C#COM可见控件(* .tlb)事件是否需要? [英] C# COM visible Control (*.tlb) Events Needed?

查看:177
本文介绍了C#COM可见控件(* .tlb)事件是否需要?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有个大问题.我已经在C#中创建了一个COM控件,希望在VB6中使用它.除事件外,其他所有功能均正常运行.

我创建了一个事件,可以在c#测试工具中看到,但是当我使用VB6中的控件时,我看到出现了两个奇怪的方法(add_EventHandlerNameHere和remove_EventHandlerNameHere)
它们都采用一个参数未知的值".

我无法弄清楚如何使用这些方法或如何正确地从VB6看事件.任何帮助将不胜感激,因为我为此非常紧张.

非常感谢,
Kiran

Hi I have a huge problem. I''ve created a COM control in c# which I wish to use in VB6. Everything is working perfectly except events.

I''ve created an event which I can see in my c# test harness but when I go to use the control in VB6 I see two strange methods have appeared (add_EventHandlerNameHere and remove_EventHandlerNameHere)
These both take in one parameter "value as unknown".

I can''t figure out how to use these methods or how to see the event properly from with VB6. Any help would be really appreciated as I''m on a really tight schedule for this.

Many Thanks,
Kiran

推荐答案

http: //www.tek-tips.com/viewthread.cfm?qid=1298191&page=164 [
http://www.tek-tips.com/viewthread.cfm?qid=1298191&page=164[^]
I believe that this link will assist you more with what you hope to acheive.


最可能的原因是您未实现IDispatch.是这样吗?
Most likely reason is you are not implementing IDispatch. Is that so?


这篇关于C#COM可见控件(* .tlb)事件是否需要?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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