I'm not a C++ developer so be gentle with me.
I am working on a legacy c++ solution and I have added a new managed project. All other projects are unmanaged. The new project is configured as Use of MFC : 'Use MFC in a shared dll'.
I have also made some changes to one of the existing projects to call my new code. This is configured as 'Use standard Windows Libraries'.
My problem is that when I try and build the existing project with my changes I get the following error:
Error 1 fatal error C1189: #error : Building MFC application with /MD[d] (CRT dll version) requires MFC shared dll version. Please #define _AFXDLL or do not use /MD[d]
Why does the compiler think this is an MFC project when it is configured as 'Use standard Windows Libraries'?