Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

class library warnings!

Status
Not open for further replies.

Andrei25

Technical User
Jan 23, 2006
10
DE
Hi!
I need to be able to reuse some vb.net classes in some other projects (one in VBA).
I thought that I should make a class library project(containing COM classes) and after this to add it in references in VBA.
I encoured some problems, some warnings, like:

Type library exporter warning processing Keyword.get_m_KeywordList(#0), ...'. Warning: Type library exporter encountered a generic type instance in a signature. Generic code may not be exported to COM.

this is from my code:
Public Property m_KeywordList() As List(Of Keyword)

Do you have any idea which type should I use?
can u tell me where can I find some documentation about what should I change in my original code from .net to be able to use it in com classes?

thanks!


 
I think it says that com won't like generics so you have to change it to an arralist or some othern non-generic collection.

Christiaan Baes
Belgium

"My new site" - Me
 
I tried tu use Collection. but I have the same warning.

Imports System.Collections.ObjectModel

Public Property m_KeywordList() As Collection(Of Keyword)
 
You were right about using ArrayList. like this is working.
I guess I didnt understand the difference between generic and nongeneric types.

thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top