Article ID: 220137 - View products that this article applies to.
This article was previously published under Q220137
When there are two identifiers that differ only by case, the case of the second identifier is changed to reflect the case of the first.
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.
The following are workarounds you can use to avoid this problem:
If an IDL file has two different identifiers with the same name but differ only in the case, then the MIDL generated Type Library will change the second identifier to the same case as the first one.
Steps to reproduce behavior
Article ID: 220137 - Last Review: September 29, 2006 - Revision: 2.3