CRegKey Undeclared Identifier

That is the error message I get it my MFC ActiveX project.  Any ideas y?  I'm using namespace ATL.

CRegKey key;
cophiAsked:
Who is Participating?
 
mahesh1402Commented:
I think including just <atlbase.h> header file will solve your problem.

-MAHESH
0
 
mahesh1402Commented:
try including afxtempl.h
#include <afxtempl.h>

-MAHESH
0
 
mahesh1402Commented:
and also #include <atlbase.h>

-MAHESH
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.