ATL Provider Error ATL2024

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

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