description | title | ms.date | f1_keywords | helpviewer_keywords | ms.assetid | ||
---|---|---|---|---|---|---|---|
Learn more about: Compiler Error C3625 |
Compiler Error C3625 |
11/04/2016 |
|
|
fdf49f21-d6b1-42f4-9eec-23b04ae8b4aa |
'native_type': a native type cannot derive from a managed or WinRT type 'type'
A native class cannot inherit from a managed or WinRT class. For more information, see Classes and Structs.
The following sample generates C3625:
// C3625.cpp
// compile with: /clr /c
ref class B {};
class D : public B {}; // C3625 cannot inherit from a managed class