I need to include afxmt.h in my VC++ Windows Forms Application's form1.h in order to declare CEvent but following compile error occurs.
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]
How do I solve this problem?