title: midl error MIDL2379
body: <p>We have a c++ library and we are auto generating COM interface for that library. so I auto generated the IDL file and everything was working fine. But over time when more interface were added to COM, We started getting the error </p>
  
  <pre><code>1&gt; Total Format String size = 69336
  1&gt; midl : error MIDL2379: the compiler reached a limit for a format string representation. See documentation for advice.
  </code></pre>
  
  <p>I am getting this error in both VS2008 and VS2010.</p>
  
  <p>Can any one please help me how to fix this problem. I searched all over internet and couldn't find a proper solution.  There is one bug reported in <a href="http://connect.microsoft.com/VisualStudio/feedback/details/306726/midl-now-fails-with-midl2379-on-idl-that-compiles-without-problem-in-vs2005" rel="nofollow">Microsoft Connect</a>, but it's status is closed.  One work around they suggest is to split the IDL file, which is not possible in my case, cause the interfaces have dependency with one other.</p>
  
  <p>I have uploaded a sample IDL file <a href="https://www.fileconvoy.com/dfl.php?id=g172d2e255cec9ac199940038805d923f5ee772774" rel="nofollow" title="SampleGenerated.idl">SampleGenerated.idl</a></p>
  
  <p>here is the command line to midl.</p>
  
  <pre><code>/W1 /nologo /char signed /env win32 /h "SampleGenerated_h.h" /tlb "Debug\SampleGenerated.tlb"
  </code></pre>