title: Convert console exe to dll in C
body: <p>I am interested in calling <a href="http://sourceforge.net/projects/sox" rel="nofollow noreferrer">SoX</a>, an open source console application, from another Windows GUI program (written in Delphi naturally).  Instead of dealing with scraping and hiding the console window, I would like to just convert the application to a DLL that I can call from my application.  </p>
  
  <p>Before I start down this path I am curious how much work I should expect to be in for?  Are we talking a major undertaking, or is there a straight forward solution?  I know some C, but am by no means an expert.  </p>
  
  <p>I am not expecting SoX specific details, just EXE console application conversion to DLL in general.  If someone is familiar with SoX though, even better.</p>