title: MIDL2398 error building with Visual Studio 2010 on Windows 2012
body: <p>I'm seeing a MIDL2398 error every time I try to compile a Visual C++ (Visual Studio 2010) project which uses COM. This project builds perfectly fine on my Windows 7 developer machine and on a Windows Server 2008 build machine, but not on a Windows Server 2012 build machine.</p>
  
  <p>I found this web site about the various MIDL compiler errors: <a href="http://blog.yezhucn.com/midl/compiler_errors.htm" rel="noreferrer">http://blog.yezhucn.com/midl/compiler_errors.htm</a></p>
  
  <p>But, I tried it's suggestion for MIDL2398, I verified that "midlc.exe" was in the same directory as "midl.exe" and that both were the same version (both are file version: 7.0.555.1 product version: 6.1.7600.16385, from the Windows SDK v7.1).</p>
  
  <p>I'm guessing it has something to do with Windows Server 2012, but I don't know.</p>
  
  <p>Has anyone been able to get the Windows SDK v7.1 MIDL compiler to work on Windows Server 2012? Or, does anyone know of what else might be causing MIDL2398?</p>