title: Can I mix C++ and C in a single project in Visual Studio?
body: <p>I have a a Win32 DLL project in VS2008, it is written in a handful of C modules.<br>
  Because I <em>also</em> want to be able to build outside VS2008, with no dependency on VS2008, I have produced a custom makefile, that does all the build and link steps. All this is set up just fine. </p>
  
  <p>Now I'd like to add a couple C++ modules to this DLL. 
  I have modified the custom makefile to compile the .cpp modules as C++, and the .c modules as regular C (/Tc) .  This all works.  It links everything together, no problem . </p>
  
  <p>Can I configure the VS2008 project to do the same?  </p>
  
  <p>Can I mix C++ and C in the same VS2008 project? </p>
  
  <p>Or do I need a custom build step for this? </p>
  
  <p>Thanks.</p>
  
  <hr>
  
  <p><strong>ANSWER</strong></p>
  
  <p>I had the VS2008 project set to compile as C.  I needed to change it to Compile As "Default".   Right click the project, select Properties, and then... : </p>
  
  <p><a href="https://i.stack.imgur.com/HYYPz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/HYYPz.png" alt="alt text"></a>
  </p>
  
  <p>Thanks, Pavel.</p>