Results 1 to 9 of 9
Hello,
I have this code:
BioAPI_FAR FARRequest=0;
BioAPI_BOOL bFARPrecedence=0;
BioAPI_INPUT_BIR inputProcessed;
BioAPI_FAR FARAchieved;
inputProcessed.Form = BioAPI_BIR_HANDLE_INPUT;
inputProcessed.InputBIR.BIRinBSP = &hProcessdBIR;
bioReturn = BioAPI_VerifyMatch(g_ModuleHandle,
&FARRequest,
NULL,
&bFARPrecedence,
&inputProcessed,
&g_inputStoredBir,
NULL,
&bResult,
&FARAchieved ...
- 04-12-2010 #1Just Joined!
- Join Date
- Mar 2008
- Posts
- 12
Print a value to a file?
Hello,
I have this code:
How can I print &FARAchieved to a file?BioAPI_FAR FARRequest=0;
BioAPI_BOOL bFARPrecedence=0;
BioAPI_INPUT_BIR inputProcessed;
BioAPI_FAR FARAchieved;
inputProcessed.Form = BioAPI_BIR_HANDLE_INPUT;
inputProcessed.InputBIR.BIRinBSP = &hProcessdBIR;
bioReturn = BioAPI_VerifyMatch(g_ModuleHandle,
&FARRequest,
NULL,
&bFARPrecedence,
&inputProcessed,
&g_inputStoredBir,
NULL,
&bResult,
&FARAchieved,
NULL,
NULL);
Or, printing the whole bioReturn would be fine too.
Thanks a lot!
- 04-12-2010 #2
with fprintf
Debian GNU/Linux -- You know you want it.
- 04-12-2010 #3Just Joined!
- Join Date
- Mar 2008
- Posts
- 12
- 04-12-2010 #4
Well, specifics would depend on what BioAPI_FAR precisely is.
Provided you are interested not in the address of the variable but in the value it has.Debian GNU/Linux -- You know you want it.
- 04-12-2010 #5Just Joined!
- Join Date
- Mar 2008
- Posts
- 12
Yes, I need the value.
This is what programmers documentation says:
BioAPI_FAR
Any help would be really appreciated!A 32-bit integer value (N) that indicates a probable False Accept Rate of N/(231-1). The larger the value, the
worse the result.
typedef sint32 BioAPI_FAR, *BioAPI_FAR_PTR;
#define BioAPI_NOT_SET (-1)
NOTE: FAR is used within BioAPI as a means of setting thresholds and returning scores.
NOTE: The IRISPASS-M BioAPI Software Development Kit always sets 1790 to the value N. This means that FAR is 1 in 1.2 million. (The actual FAR varies for each verification or identification.
Thanks a lot.
- 04-12-2010 #6
Ok, so FARAchieved is a 32 bit signed integer, and &FARAchieved is a pointer of/to it.
This corresponds to the "%d" code in the fprintf and printf format.
printf [C++ Reference]
But for fprintf, you will also need a file handle of an open file.
fprintf [C++ Reference]Debian GNU/Linux -- You know you want it.
- 04-12-2010 #7Just Joined!
- Join Date
- Mar 2008
- Posts
- 12
Thanks.
I tried this:
And I get "error C2100: illegal indirection" errorint myFAR = *FARAchieved;
FILE *out = fopen( "output.txt", "w" );
if( out != NULL )
fprintf( out, "%d\n", myFAR );
- 04-12-2010 #8
Because FARAchieved is not a pointer.
Debian GNU/Linux -- You know you want it.
- 04-12-2010 #9Just Joined!
- Join Date
- Mar 2008
- Posts
- 12


Reply With Quote
