Export (0) Print
Expand All
Expand Minimize

ATL Provider Warning ATL4051

Class "class" derives from CComObjectRoot(Ex). Not injecting base class. Ignoring threading attribute.

The provider would ordinarily inject a base class, but class class already derives from the base class. In this situation, the threading attribute, if present, is ignored.

The following sample generates ATL4051.

// ATL4051.cpp
// compile with: /c /W3
// ATL4051 expected
#include <atlbase.h>
#include <atlcom.h>

[ coclass, uuid("00000000-0000-0000-0000-000000000001") ]
class CATL4051 : public CComObjectRoot

Community Additions

© 2015 Microsoft