MIDL工具生成的TLB文件中大小写问题

来源:互联网 发布:gre背单词软件 编辑:程序博客网 时间:2024/05/29 18:48

用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/

 

原创粉丝点击