Griaule Biometrics

Home » Fingerprint SDK 2009 Developer's Manual » Programming Reference Guide » Fingerprint SDK ActiveX Reference Guide » Initialization and finalization methods » CreateContext

CreateContext

Creates a context in which extraction, verification and identification may be performed.

Prerequisites The Fingerprint SDK library must have been previously initialized.

Return On success, GR_OK is returned.
On failure, the appropriate error code is returned.

Parameters

[out] contextId

The identifier of the newly created context.

Declaration

C++ .NET

int CreateContext(ref int contextId);

C#

int CreateContext(ref int contextId);

VB6

Function CreateContext(ByRef contextId As Long) As Long

VB .NET

Function CreateContext(ByRef contextId As integer) As integer

Delphi

function CreateContext(var contextId: integer): integer;

Sample Code

C++ .NET

int myContextId=0;
int retVal=_grfingerx->CreateContext(myContextId);

C#

int myContextId=0;
int retVal=_grfingerx.CreateContext(myContextId);

VB6

Dim myContextId As Long
retVal=GrFingerXCtrl1.CreateContext(myContextId)

VB .NET

Dim myContextId As integer
retVal=_GrFingerX.CreateContext(myContextId)

Delphi

retVal:=GrFingerXCtrl1.CreateContext(contextId);