Resolve C2872 errors: ambiguous symbol

4>g:worktest.cpp(119): error C2872: ‘CRegKey’ : ambiguous symbol
4> could be ‘g:workwindowscregkey.h(33) : CRegKey’
4> or ‘c:program files (x86)microsoft visual studio 10.0vcatlmfcincludeatlbase.h(5459) : ATL::CRegKey’
In case you have such issues, the easiest way to resolve them would be to use
::CRegKey in front of the keyword.
This will call the local libraries first.


Leave a Reply

Your email address will not be published. Required fields are marked *