Solved

CRegKey class.

Posted on 2002-05-18
2
1,168 Views
Last Modified: 2013-11-20
Hi,

I wrote a MFC program, and I tried to use the CRegKey class.
The file "AtlBase.h" is included in stdafx.h.

The problem is that I got the following two errors :

"error C2872: 'CRegKey' : ambiguous symbol"
"error C2079: 'RegKey' uses undefined class 'CRegKey'"

My question is, What can I do to fix these errors ?

Thanks
Michael.
0
Comment
Question by:MichaelMaromm
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 12

Accepted Solution

by:
migel earned 50 total points
ID: 7019377
Hi!
Did you try adding namespace prefix before using CRegKey?
that is
ATL::CRegKey RegKey;
 
also try add #include <atlbase.h> into the your project stdafx.h
0
 

Author Comment

by:MichaelMaromm
ID: 7096968
Hi migel , I'm sorry, that it took a lot of time, but thanks for your answer, I give you your 50 points.

Michael.
0

Featured Post

Get HTML5 Certified

Want to be a web developer? You'll need to know HTML. Prepare for HTML5 certification by enrolling in July's Course of the Month! It's free for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Suggested Courses

617 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