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
1> Total Format String size = 69336
1> midl : error MIDL2379: the compiler reached a limit for a format string representation. See documentation for advice.
I am getting this error in both VS2008 and VS2010.
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 Microsoft Connect, 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.
I have uploaded a sample IDL file SampleGenerated.idl
here is the command line to midl.
/W1 /nologo /char signed /env win32 /h "SampleGenerated_h.h" /tlb "Debug\SampleGenerated.tlb"