W8132 Casting interface '%s' to Delphi-style class. Use 'System::interface_cast<%s>(intf)' instead (C++)
Go Up to Compiler Errors And Warnings (C++) Index
This occurs when casting an interface to a delphi style class using the cast operator.
#include <System.hpp>
class TMyClass : public TObject
{
};
TMyClass* f(IUnknown* I)
{
return dynamic_cast<TMyClass*>(I); // <-- W8132
}