ATL Provider Warning ATL4051
TOC
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

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
#define _ATL_ATTRIBUTES
#include <atlbase.h>
#include <atlcom.h>

[ coclass, uuid("00000000-0000-0000-0000-000000000001") ]
class CATL4051 : public CComObjectRoot
{
};
Show:
© 2016 Microsoft