Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

ATL Provider Error ATL2050

Error Message

Attribute cannot be specified on a class that indirectly derives from CComCoClass.

The provider has encountered an attribute that is incompatible with a class that indirectly derives from CComCoClass.

The following sample generates ATL2050.

// ATL2050.cpp
// compile with: /c
// ATL2050 expected
#define _ATL_ATTRIBUTES
#include <atlbase.h>
#include <atlcom.h>

class CATL2050Base : public CComCoClass<CATL2050Base>
{
};

[ coclass ]
class CATL2050 : public CATL2050Base
// to resolve, change the previous line to
// class CATL2050 : public CComCoClass<CATL2050>
{
};
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.