ICreateTypeLib::SetVersion method (oaidl.h)

Sets the major and minor version numbers of the type library.

Syntax

HRESULT SetVersion(
  [in] WORD wMajorVerNum,
  [in] WORD wMinorVerNum
);

Parameters

[in] wMajorVerNum

The major version number for the library.

[in] wMinorVerNum

The minor version number for the library.

Return value

This method can return one of these values.

Return code Description
S_OK
Success.
TYPE_E_INVALIDSTATE
The state of the type library is not valid for this operation.

Requirements

Requirement Value
Target Platform Windows
Header oaidl.h

See also

ICreateTypeLib