

error C2872: byte: ambiguous symbol C:Program Files (x86)Windows.
One thing which i forget to tell is that this code is working fine in Debug mode. Even if that C code gets compiled as C++ theres no includeI reccomend just using different names rather using global and local variations of a variable. myheaderFilelocation( 295) : myclassobject::CString 'Ĭ:\Program Files\Microsoft Visual Studio 10.0\VC\atlmfc\include\afxwin.h(3361) : see reference to function template instantiation 'TReturnType CWnd::EnlargeBufferGetText(TRetur nType,LPTSTR &,TCchType &,TCchType,TCchType,UINT,WPARAM &,LPARAM &,CString &) throw(.) const ' being compiledĬ:\Program Files\Microsoft Visual Studio 10.0\VC\atlmfc\include\afxwin4.inl(132) : see reference to function template instantiation 'TReturnType CWnd::EnlargeBufferGetText(TReturnType,LPTST R &, int &,UINT,WPARAM &,LPARAM &,CString &) throw(.) const ' being compiled Its probably fussing that it has been declared twice, but I have no idea how you can fix it. The declaration of a member with an ambiguous name in a derived class is not an error. To be on the safe side, VS Code's Workspace Trust Restricted Mode should be used to review source code, as all non-ASCII characters are highlighted in untrusted workspaces. Access to a base class member is ambiguous if you use a name or qualified name that does not refer to a unique function or object. C:\Program Files\Microsoft Visual Studio 10.0\VC\atlmfc\include\afxwin.h( 3331): error C2872: ' CString' : ambiguous symbolĬould be ' C:\Program Files\Microsoft Visual Studio 10.0\VC\atlmfc\include\afxstr.h(99) : ATL::CStringT CString' Also, the detection of ambiguous characters is done heuristically.
