用MIDL将IDL文件生成TLB文件时,有时定义的方法或属性的大小写会变掉。
其原因是因为MIDL是一个大小写不敏感的工具。
官方的说法是:
The IDL and Type library are not case sensitive by design. The Ole Automation code that is called by MIDL to generate the type library is taking the first occurrence of a name and any subsequent occurrences of the same name in the IDL, even if it is in different context, to be the same.
http://support.microsoft.com/kb/q220137/
本文探讨了使用MIDL工具处理IDL文件时遇到的问题——方法或属性的大小写发生变化。解释了这一现象的原因在于MIDL工具本身不区分大小写的设计,并引用了微软官方文档进行说明。

被折叠的 条评论
为什么被折叠?



