ATL Provider Error ATL2024
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 Error ATL2024

Error Message

Attribute should be used with a 4 byte storage data type for a DWORD key.

The attribute was used with a data type too small to hold a DWORD. To resolve, change the data type to a four-byte type (such as DWORD, int, or long).

The following sample generates ATL2024.

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

class CRDXTest
   public :
   [ rdx ("HKLM", "testdw", "DWORD") ] short m_dwValue;
// to resolve, change short to DWORD
© 2016 Microsoft