IActiveScriptAuthor::AddTypeLib
Adds a type library to the namespace for the script.
Syntax
HRESULT AddTypeLib(
REFGUID rguidTypeLib,
DWORD dwMajor,
DWORD dwMinor,
DWORD dwFlags
);
Parameters
rguidTypeLib
[in] The CLSID (class identifier) of the type library to be added.
dwMajor
[in] The major version number.
dwMinor
[in] The minor version number.
dwFlags
[in] Not used.
Return Value
An HRESULT
. Possible values include, but are not limited to, those in the following table.
Value | Description |
---|---|
S_OK |
The method succeeded. |
Remarks
This method calls LoadTypeLib
to load the type library. Upon success, this method calls IActiveScriptAuthor::AddNamedItem
to add type information.
See also
IActiveScriptAuthor Interface
IActiveScriptAuthor::AddNamedItem
LoadTypeLib