Article ID: 220137 - Last Review: September 29, 2006 - Revision: 2.3 MIDL changes the case of identifier in generated type library
This article was previously published under Q220137 On This PageSYMPTOMS
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.
CAUSE
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.
RESOLUTION
The following are workarounds you can use to avoid this problem:
STATUS
This behavior is by design. MORE INFORMATION
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
| Other Resources Other Support Sites
CommunityArticle Translations |





















Back to the top