469,578 Members | 1,799 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,578 developers. It's quick & easy.

Do not use AutoDual ClassInterfaceType

Hello All,

I am having a C#.Net Windows Control Library Project.. I want to use this control in vb.
for that i have done like this
[ProgId("ProjectName.MyControl ")]
public partial class MyControl : UserControl
I have done all the steps that required to register this control to make use in vb 6.0. It is working fine in vb 6.0.

But i am having doubt in [ClassInterface(ClassInterfaceType.AutoDual)]
This msdn link says that Do not use AutoDual ClassInterfaceType. we need to go for [ClassInterface(ClassInterfaceType.None)]
http://msdn2.microsoft.com/en-us/library/system.runtime.interopservices.classinterfacetype. aspx

At that time we need to do like this..

public interface DotNetInterface


[ProgId("ProjectName.MyControl ")]
public partial class MyControl : UserControl, DotNetInterface

Here can we use that interface which is not having any method signatures..
Is there any way to do this without declaring the interface and i need to use
[ClassInterface(ClassInterfaceType.None)], is there any default interface that i can inherit.....Plz can any body clarify this....
Jan 16 '08 #1
0 2751

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

4 posts views Thread by Roy Pereira | last post: by
1 post views Thread by Andrew J. Marshall | last post: by
7 posts views Thread by Josef | last post: by
2 posts views Thread by Michal | last post: by
reply views Thread by Martin Brunner | last post: by
9 posts views Thread by Michael Tissington | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.