RAD Studio VCL Reference
|
Loads the type library for the server.
procedure LoadTypeLib;
__fastcall LoadTypeLib();
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. |
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
What do you think about this topic? Send feedback!
|