ImageEn, unit ievision

IEVisionAvailable


Declaration

function IEVisionAvailable(ExeFolderOnly: Boolean = False): boolean;


Description

Checks 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.

Notes:
- The IEVision DLL also includes IELib
- You can use RegisterPlugIns as an alternative to IEVisionSetSerialNumber and IEVisionAvailable. See example below...
- The expected version of IEVision is available from: ImageEnVersion.IELibVersionStr


Example

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
- ImageEnVersion.IELibVersionStr
- DLLLoadingLog