ImageEn, unit hyieutils

IELang_IsAvailable


Declaration

function IELang_IsAvailable(ExeFolderOnly: Boolean; RaiseExcept: Boolean): Boolean; overload;
function IELang_IsAvailable(const DLLPath: String = ''; RaiseExcept: Boolean = False): Boolean; overload;


Description

Checks if the IELang DLL is available (and initializes it).
If RaiseExcept is true, an exception will occur if the DLL is not found.
If ExeFolderOnly is true, only the folder of the application EXE is checked for IEVision DLLs.
Alternatively, you can specify a path to the DLL, which can either be a full filename or a folder.

Note: You are better to use RegisterPlugIns or PlugInAvailable rather than IELang_IsAvailable


Example

if not IELang_IsAvailable() then
  ShowMessage( 'Languages DLL not found! Please reinstall' );

// Which is the same as:
if not ( iepiLanguages in IEGlobalSettings().RegisterPlugIns([ iepiLanguages ])) then
  ShowMessage( 'Languages DLL not found! Please reinstall' );


See Also

RegisterPlugIns
PlugInAvailable
DLLLoadingLog