System.Win.ComServ.TComServer.LoadTypeLib

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure LoadTypeLib;

C++

void __fastcall LoadTypeLib();

Properties

Type Visibility Source Unit Parent
procedure
function
public
System.Win.ComServ.pas
System.Win.ComServ.hpp
System.Win.ComServ TComServer

Description

Loads the type library for the server.

LoadTypeLib loads the type library for the server. If the type library is not already loaded when LoadTypeLib is called, it also registers the type library.

If LoadTypeLib is not successful, it raises an EOleSysError indicating the error code. The possible error codes are as follows:



Error code Meaning

E_OUTOFMEMORY

Out of memory.

E_INVALIDARG

One or more of the arguments is invalid.

TYPE_E_IOERROR

The function could not write to the file.

TYPE_E_INVALIDSTATE

The type library could not be opened.

TYPE_E_INVDATAREAD

The function could not read from the file.

TYPE_E_UNSUPFORMAT

The type library has an older format.

TYPE_E_UNKNOWNLCID

The LCID could not be found in the OLE support DLLs.

TYPE_E_CANTLOADLIBRARY

The type library or DLL could not be loaded.

Other return codes

All FACILITY_STORAGE errors may be returned.



See Also