ICreateTypeLib::SetVersion

This method sets the major and minor version numbers of the type library.

At a Glance

Header file: Oaidl.h
Windows CE versions: 2.0 and later

Syntax

HRESULT SetVersion( unsigned short wMajorVerNum,
unsigned short
wMinorVerNum );

Parameters

wMajorVerNum

Major version number for the library.

wMinorVerNum

Minor version number for the library.

Return Values

One of the values described in the following table is returned.

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