Huw Davies huw@codeweavers.com wrote:
When you're testing, try setting the enum tag name and the typedef name to be same (as they are in httprequest.idl) and also the different names.
That looks like a real source of the problem: if the tag and typedef names are the same then midl doesn't add a typedef'ed name information to typelib, when the names differ - then two typedef entries get creates: an alias for the typedef and real typedef for a tag. I have a patch that fixes this bug.
It's also possible that using the typedef (in a method argument, for example) may result in different behaviour to just declaring it.
Using the typedef in addition to just declaring it doesn't seem to cause a difference in the typelib generation.