AA2e72E
9/18/2007 7:30:00 AM
I have a couple of questions; I'd be grateful for some quidance:
A. Why does my C# DLL do the following:
1. expose (to VB 6.0) methods such as GetHashCode, GetType,, ToString etc
when I have not defined/exposed them.
2. I have an event exposed, MyEvent; amongs the methods exposed, I find
add_MyEvent and remove_MyEvent. Why? How can I use these? How can I
suppress (prevent them from appearing) them?
3. With VB6.0, I can use the 'Public WithEvents' route to handle the event;
how do I do the same in C#?
B. Is there a recommended template for building Interop DLLs using C#? I
find that depending on how I put it together, it works with some clients but
not others. For example, it might work with VB6.0 but not with VBScript. And,
I have never got any to work with VBA (Excel's). I have used both early and
late binding but the end result is the same.
Thanks for your help.