1

I have a declaration in the library block of my project's IDL file like so:

[uuid(...), helpstring(...)]
coclass MyClass;

The only interfaces this class implements are standard Microsoft-defined interfaces (such as IPersistPropertyBag2). If I include them in the definition of "MyClass", then they get sucked into the type library, which I do not want. The problem is that, if I leave the interface list empty as above, then MIDL won't include the class in the generated header files or type library.

So the question is: how do I force MIDL to include "MyClass" in the type library?

Or, even better: how can I force MIDL to exclude certain interfaces in a coclass from the type library?

Peter Ruderman
  • 12,241
  • 1
  • 36
  • 58

0 Answers0