warnings about mystery interfaces in C# projects
Asked Answered
M

2

5

Every time I build my C# Solution, I get a handful of warnings about interfaces that I've never seen or written. I tried Googling for some of them, but get no hits. Could these possibly be buried in an assembly I'm referencing? If so, is there any way to make these warnings go away?

Interface 'IAlertable' is marked as [dual], but does not derive from IDispatch. It will be converted as an IUnknown-derived interface.

Interface 'ICustomizationPermissionsReports' is marked as [dual], but does not derive from IDispatch. It will be converted as an IUnknown-derived interface.

Interface 'IAlertable2' is marked as [dual], but does not derive from IDispatch. It will be converted as an IUnknown-derived interface.

Musselman answered 17/6, 2010 at 13:57 Comment(3)
Do you have the Register for COM interop setting checked in the project settings?Eyeleen
Did you reference any COM dlls? You get these warnings when referenced COM components are not defined correctly.Damaris
@Chaos: in the Build section of the properties on my project, "Register for COM interop" is not checked and it's actually disabled.Musselman
F
6

They must come form a COM assembly you are referencing. You could try to find out which one. It looks like the wrapper code was written/generated incorrectly.

And Visual Studio does have a "suppress warnings: " text box but I am at a loss as to what to type there.
Project Properties, Build

Fragment answered 17/6, 2010 at 14:2 Comment(0)
R
4

These are interfaces to HP Quality Center OTA-API "Interop.TDAPIOLELib", an ActiveX COM Type Library. Check your references.

Rosenwald answered 14/6, 2011 at 1:11 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.