/MD compiler switch

I've got a dll subproject and want to move a dialog call to it.  When I do the compiler generates an error that it can't find the CWnd definition.  So I include stdafx.h, that generates the following error:

fatal error C1189: #error :  Please use the /MD switch for _AFXDLL builds

What setting do I need to change in the subproject?
Who is Participating?
jkrConnect With a Mentor Commented:
Go to the project settings, choose the 'C++' tab and select 'Code Generation' from the combo box. There, set 'Use run-time library' to 'Multithreaded DLL' (for the Release build - if you're building a debug version, choose 'Debug multithreaded DLL)
All Courses

From novice to tech pro — start learning today.