Skip to main content
ABBYY FlexiCapture 12 SDK supports dynamic binding in COM interfaces: almost all ABBYY FlexiCapture 12 SDK interfaces are derived from IDispatch (the exceptions are some of the callback interfaces implemented on the client side). Scripting languages (for example, VBScript and JScript) support only dynamic binding. Therefore, due to inheriting such interfaces from IDispatch the use of ABBYY FlexiCapture SDK from these languages does not require additional efforts. You may load the Engine object by using the FCSDK.InprocLoader or FCSDK.OutprocLoader objects. These objects support the IEngineLoader interface, which allows you to load and unload the Engine object. In the first case FlexiCapture SDK will be loaded as an in-process server in the current process, in the latter case it will be an out-of-process server in a work process. For example, you can create the Engine object by using the JScript ActiveXObject function.
In VBScript, use the CreateObject method:
In Perl, use the CreateObject method:
After the Engine object is created, the other objects created by the methods of the Engine object named “Create…” or “Load…” can now be created and used directly from the scripting language. Samples illustrating the use of ABBYY FlexiCapture SDK in scripting languages can be found in Samples\Hello (JScript, VBScript, Perl) (Start > Programs > ABBYY FlexiCapture 12 SDK > Code Samples Folder > Hello (JScript, VBScript, Perl)).

See also

Description of ABBYY FlexiCapture SDK Samples