Export (0) Print
Expand All
Expand Minimize

ATL Provider Error ATL2020

Unknown root key format, no acceptable root key found in key.

key contains an invalid root key. Valid root key values are

  • HKCR

  • HKCU

  • HKLM

  • HKU

  • HKPD

  • HKDD

  • HKCC

  • HKEY_CLASSES_ROOT

  • HKEY_CURRENT_USER

  • HKEY_LOCAL_MACHINE

  • HKEY_USERS

  • HKEY_PERFORMANCE_DATA

  • HKEY_DYN_DATA

  • HKEY_CURRENT_CONFIG

The following sample generates ATL2020.

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

class CRDXTest
{
   public :
   [ rdx ("HKLMM", "test", "text") ] TCHAR m_szValue[10];
// to resolve, change HKLMM to HKLM
};

Community Additions

ADD
Show:
© 2014 Microsoft