ICreateTypeInfo::SetVersion method (oaidl.h)
Sets the major and minor version number of the type information.
Syntax
HRESULT SetVersion(
[in] WORD wMajorVerNum,
[in] WORD wMinorVerNum
);
Parameters
[in] wMajorVerNum
The major version number.
[in] wMinorVerNum
The minor version number.
Return value
This method can return one of these values.
Return code | Description |
---|---|
|
Success. |
|
Cannot write to the destination. |
|
The state of the type library is not valid for this operation. |
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | oaidl.h |