Warnings for each table in dataSet

Tenzen

Member
Joined
Aug 18, 2010
Messages
16
Programming Experience
3-5
I get warnings for each table (from Access database) in my dll plugin project:

Type library exporter warning processing '[PluginName].DataSet+[TableName]DataTable, [PluginName]'. Warning: Type library exporter encountered a type that derives from a generic class and is not marked as [ClassInterface(ClassInterfaceType.None)]. Class interfaces cannot be exposed for such types. Consider marking the type with [ClassInterface(ClassInterfaceType.None)] and exposing an explicit interface as the default interface to COM using the ComDefaultInterface attribute.

How to fix it? Could it be reason why my COM+ assembly is not registering with Wix installer?
 
Have you rpovided an explicitly defined COM interface or are you just getting Visual Studio to try and guess at what parts of everything are to be exposed to COM?

I always write an explicit interface, personally..
 
When I did it in a c# app I made:

An interface of everything I wanted to see in com
A class that implements the interface
The class is marked ClassInterface(ClassInterfaceType.None)
The assemby is com visible

And that was it really, i think.. When compiled and regasmed it showed up as something I could add to e.g. VBA
 
Back
Top