Hai,
I created one COM class from vb.net application.
After creating xxx.tlb file in another machine, I tried to access
that com methods and properties in vb application.
I can add reference in my vb application and created object for
that class. But I can't use methods and properties.
Bec., the methods and properties are not available to use.
What we have to do, to use our .net com to vb or any other
application.
Thanking you
Regards,
Raj.
Norman Yuan - 20 Jun 2007 15:45 GMT
What do you mean "the methods and properties are not available".
If you mean the call to property/method
myClass.Prop1
or
myClass.Method1()
causes error, then it is most likely, the COM wrapper of .NET class is not
corrected registered or installed.
If you mean when you writing code in VB/VBA, the intellisence prompt does
not show the class' properties/methods, then, it is normal and by design.
That is, the methods and properties ARE available to use, but NOT available
to intellisence. If you want the the .NET COM class to show intellisence
prompt as regular COM object class, you need to do extra work. Search MS KB
article to this.
> Hai,
>
[quoted text clipped - 15 lines]
> Regards,
> Raj.
Mattias Sjögren - 20 Jun 2007 23:14 GMT
> Bec., the methods and properties are not available to use.
See if this helps
http://www.dotnetinterop.com/faq/?q=ClassInterface
Mattias

Signature
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.