My question is: what is the correct usage of the version
tag in an IDL file that defines COM interfaces and classes and enums?
The MSN documentation of it is confusing: the first paragraph under "Remarks" seems to clearly say that the IID must be changed if anything changes in the interface.
But the rest of the page goes on to describe using differing version
s with the same IID. There is even one of the sample COM interface pages that shows using version
with interface
.
What's going on?
Additional question: is it permitted to use version
with an enum
? MIDL 7.00.05555 accepts the version
attribute for enum
, however if a versioned enum is used as a function parameter, MIDL gives an error.