CRegKey Undeclared Identifier

Posted on 2006-05-03
Last Modified: 2013-11-20
That is the error message I get it my MFC ActiveX project.  Any ideas y?  I'm using namespace ATL.

CRegKey key;
Question by:cophi
    LVL 22

    Expert Comment

    try including afxtempl.h
    #include <afxtempl.h>

    LVL 22

    Expert Comment

    and also #include <atlbase.h>

    LVL 22

    Accepted Solution

    I think including just <atlbase.h> header file will solve your problem.


    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    MFC Dialog 9 45
    sum28 challenge 31 82
    zeroFront challenge 7 58
    wordcount challenge 11 48
    Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
    Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
    This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
    how to add IIS SMTP to handle application/Scanner relays into office 365.

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now