Add scripting to your application with Vbsedit !

IActiveScript::AddTypeLib

 

Adds a type library to the name space for the script. This is similar to the #include directive in C/C++. It allows a set of predefined items such as class definitions, typedefs, and named constants to be added to the run-time environment available to the script.

HRESULT AddTypeLib(
    REFGUID guidTypeLib,  // CLSID of type library
    DWORD dwMaj,          // major version number
    DWORD dwMin,          // minor version number
    DWORD dwFlags         // option flags
);

guidTypeLib

[in] CLSID of the type library to add.

dwMaj

[in] Major version number.

dwMin

[in] Minor version number.

dwFlags

[in] Option flags. Can be the following:

Value

Meaning

SCRIPTTYPELIB_ISCONTROL

The type library describes an ActiveX control used by the host.

Returns one of the following values:

Return Value

Meaning

S_OK

Success.

E_INVALIDARG

An argument was invalid.

E_UNEXPECTED

The call was not expected (for example, the scripting engine has not yet been loaded or initialized).

TYPE_E_CANTLOADLIBRARY

The specified type library could not be loaded.


Add VBScript and Javascript scripting
to your application with VbsEdit !



Download Now!

This package includes VbsEdit 32-bit and 64-bit.




Home  

Copyright © 2001-2024 adersοft