Solved

CRegKey class.

Posted on 2002-05-18
2
1,135 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
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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Perl Awk Need Help 3 94
Process filename extension 3 156
unable to delete all specified values regedit 38 155
bigDiff challenge 17 75
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

762 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

17 Experts available now in Live!

Get 1:1 Help Now