Compiler Error C3247
Collapse the table of content
Expand the table of content
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

Compiler Error C3247

Error Message

'class1' : a coclass cannot inherit from another coclass 'class2'

A class marked with the coclass attribute cannot inherit from another class marked with the coclass attribute.

The following sample generates C3247:

// C3247.cpp
class a {

class b : public a {   // C3247
int main() {
© 2015 Microsoft