title: Porting a class from MFC to a C++ Console Application . Building MFC application with /MD[d] (CRT dll version) requires
body: <p>I am trying to port a certain functionality from an MFC based application. Apparently I have no experience with MFC . The class of my interest inherits from CAsyncSocket. When looking that class up on MSDN , it states that the class is derived from <code>afxsock.h</code> . When I added that to my console application code I got the following error message which was</p>
  
  <pre><code>Error   1   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]  d:\program files (x86)\microsoft visual studio 10.0\vc\atlmfc\include\afx.h
  </code></pre>
  
  <p>Any suggestions on how I could resolve this issue ?</p>