Programming VB.Net dll's for use with COM?
Hi everyone. I am wanting to do all new new development in VB.Net but im confused on making your vb.net dll's compatible with COM even after reading several articles from MSDN. I read one specific article were they talk about ClassInterfaceAttribute and how you can use it to tell VB.Net what type of COM interface you want to build. I know that COM by default uses dispatch only which i think is the same as ClassInterfaceType.AutoDual. When use specify ClassInterfaceType.None it appears that this is used by COM for late bound clients. They talked something about cache dispid's but i really didn't understand what they were talking about since if your doing
dim i as variant
set i = createobject("Mydll.CreateInstance") and you replace the dll/type library with a new version i don't see how that could cause a problem if your cache or not cache dispid's. They also talk about ClassInterfaceType.AutoDispatch which sounds like what i want to do but they recommend against it. I can't understand why. I want my vb.net object to act like any ordinary COM VB object in that i can early bind or late bind to them. Any help would be highly appreciated.
thanks in advance
ncage