error C2872: 'CDialogImpl': ambiguous symbol while adding a new dialog class from Wizard

  • Thread starter Thread starter MayankAg
  • Start date Start date
M

MayankAg

Guest
Hi,

I have a legacy VC++ MFC project recently ported in VS2015. Now in the same project I am creating a new Dialog and its class inherited with CDialogEx using wizard. and compiling. Before adding this dialog and its class it is successfully compiling.

It is giving me the following errors after adding:

1>c:\program files (x86)\microsoft visual studio 14.0\vc\atlmfc\include\afxpropertysheet.h(145): error C2872: 'CDialogImpl': ambiguous symbol
1> c:\program files (x86)\microsoft visual studio 14.0\vc\atlmfc\include\afxdialogimpl.h(26): note: could be 'CDialogImpl'
1> C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\atlmfc\include\atlwin.h(3937): note: or 'ATL::CDialogImpl'
1>c:\program files (x86)\microsoft visual studio 14.0\vc\atlmfc\include\afxpropertypage.h(65): error C2872: 'CDialogImpl': ambiguous symbol
1> c:\program files (x86)\microsoft visual studio 14.0\vc\atlmfc\include\afxdialogimpl.h(26): note: could be 'CDialogImpl'
1> C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\atlmfc\include\atlwin.h(3937): note: or 'ATL::CDialogImpl'
1>c:\program files (x86)\microsoft visual studio 14.0\vc\atlmfc\include\afxdialogex.h(60): error C2872: 'CDialogImpl': ambiguous symbol
1> c:\program files (x86)\microsoft visual studio 14.0\vc\atlmfc\include\afxdialogimpl.h(26): note: could be 'CDialogImpl'
1> C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\atlmfc\include\atlwin.h(3937): note: or 'ATL::CDialogImpl'
1>c:\program files (x86)\microsoft visual studio 14.0\vc\atlmfc\include\afxpopupmenu.h(44): error C2872: 'CDialogImpl': ambiguous symbol
1> c:\program files (x86)\microsoft visual studio 14.0\vc\atlmfc\include\afxdialogimpl.h(26): note: could be 'CDialogImpl'
1> C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\atlmfc\include\atlwin.h(3937): note: or 'ATL::CDialogImpl'


I didnt even wrote a single line of code in the project.

Please help me with the solution, I couldn't found any solution in google related to this issue, please guide.


Thanks in Advance.

Regards,

Mayank



Thanks & Regards, Mayank Agarwal

Continue reading...
 
Back
Top