W8130 Interface '%s' does not derive from IUnknown. (Interfaces should derive from IUnknown) (C++)

From RAD Studio
Jump to: navigation, search

Go Up to Compiler Errors And Warnings (C++) Index

This occurs when defining an interface without inheriting from IUknown.

#include <System.hpp>
__interface IFoo 
{
  virtual void Invoke() = 0;
};
class TMyClass : public TObject, public IFoo  // <- W8130
{
};