[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1245
  • Last Modified:

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;
0
cophi
Asked:
cophi
  • 3
1 Solution
 
mahesh1402Commented:
try including afxtempl.h
#include <afxtempl.h>

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

-MAHESH
0
 
mahesh1402Commented:
I think including just <atlbase.h> header file will solve your problem.

-MAHESH
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now