Declaration
function IEVisionAvailable(ExeFolderOnly: Boolean = False; RaiseException: Boolean = False): boolean; overload;
function IEVisionAvailable(const DLLPath: WideString; RaiseException: Boolean = False): boolean; overload;
Description
Returns true if an
IEVision DLL is available (and initializes it). When it returns true you can use any IEVision function and class.
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.
If RaiseException is enabled, the following exception will be raised if the library has
not been intialized (or a serial number specified): "A required library file (ievision.dll) has not been initialized, or is outdated (Version expected: x.x.x.x)"
Note:
◼The IEVision DLL also includes
IELib
◼You are better to use
RegisterPlugIns as an alternative to
IEVisionSetSerialNumber and
IEVisionAvailable. See example below...
◼The expected version of IEVision is available from:
ImageEnVersion.IELibVersionStr
IEVisionSetSerialNumber( 'me@mycompany.com', 'ievis-12345-67890-12345-67890-12345-67890' );
if not IEVisionAvailable() then
begin
ShowMessage('This application requires ievision.dll plugin. Please download it from www.imageen.com/download/');
Application.Terminate;
exit;
end;
// Note: This is the same as calling:
IEGlobalSettings().RegisterPlugIns( [iepiIEVision], 'me@mycompany.com', 'ievis-12345-67890-12345-67890-12345-67890' );
if not ( iepiIEVision in IEGlobalSettings().ActivePlugIns ) then
begin
ShowMessage( 'This application requires the ievision.dll plug-in, v' + IEGlobalSettings().ImageEnVersion.IELibVersionStr +'. Please download it from www.imageen.com' );
exit;
end;
// Now use IEVision...
See Also
◼IEVisionSetSerialNumber
◼RegisterPlugIns
◼PlugInAvailable
◼ImageEnVersion.IELibVersionStr
◼DLLLoadingLog