Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

CRegKey class.

Posted on 2002-05-18
2
Medium Priority
?
1,198 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 200 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

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.

Question has a verified solution.

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

If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
Ready to get certified? Check out some courses that help you prepare for third-party exams.
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.
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…

782 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