|
What does the documentation say?
|
|
|
|
|
This is what I tried... please help
BOOL CPrivatePoolBioDlg::EnrollFingerprint()
{
WINBIO_UNIT_SCHEMA *unitSchemaArray = NULL;
SIZE_T unitSchemaCount = 0;
WINBIO_UNIT_ID unitIdArray[1]={};
SIZE_T unitIdCount = ARRAYSIZE(unitIdArray);
WINBIO_SESSION_HANDLE sessionHandle;
HRESULT hr;
hr = WinBioEnumBiometricUnits(WINBIO_TYPE_FINGERPRINT,&unitSchemaArray,&unitSchemaCount);
if(FAILED(hr))
{
CString m;
m.Format(_T("Unable to Enumarate Device 0x%08x"),hr);
AfxMessageBox(m);
return 0;
}
unitIdArray[0] = unitSchemaArray[0].UnitId;
hr = WinBioOpenSession(WINBIO_TYPE_FINGERPRINT,WINBIO_POOL_PRIVATE,WINBIO_FLAG_BASIC,
unitIdArray,unitIdCount,&PRIVATE_POOL_DATABASE_ID,&sessionHandle);
if(FAILED(hr))
{
CString m;
m.Format(_T("Unable to Start session 0x%08x, %d"),hr, GetLastError());
AfxMessageBox(m);
return 0;
}
WinBioCloseSession(sessionHandle);
return 1;
}
|
|
|
|
|
Sorry, I do not have a sensor so am unable to test your code. You need to step through it with your debugger and see what values are being generated/returned through the code.
|
|
|
|
|
In comment see that WinBioOpenSession() is returning
WINBIO_E_CONFIGURATION_FAILURE
|
|
|
|
|
Yes, so you obviously have some information in your configuration parameters that are not acceptable. But as I already explained, I do not have a bio device, so cannot test your code.
|
|
|
|
|
Got it Sir...
The problem is in starting WbioSrvc Service
and creating configuration in registry values.
|
|
|
|
|
|
See WinBioOpenSession function[^]
There are two kinds of people in the world: those who can extrapolate from incomplete data.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
Sir there is only example for creating system pool not the private pool
|
|
|
|
|
yes there is it is spelled out in very clear steps
Private Pool Setup (Windows)[^]
If you googled private pool setup MSDN you would have found it ... that is after all what you are trying to setup a private pool database.
3rd entry down gives you the funky GUID you need once you have the database online.
In vino veritas
|
|
|
|
|
It spells it out to you ..
>>>>> If the PoolType parameter is WINBIO_POOL_PRIVATE, you must specify the GUID of an installed database <<<<<<
Can you tell us what PRIVATE_POOL_DATABASE_ID is in your code?
You haven't shown us the database entry ... the bit where it usually links in the .DAT file into a database
In vino veritas
modified 15-Apr-17 14:34pm.
|
|
|
|
|
Sorry for this but I used the same as mentioned in msdn Private Pool Setup. Because first of all I wanted to know how it works and if I'm able to take one fingerprint sample using private pool then after I can go further.
Actually I'm working on Fingerprint Attendance Demo project for practicing so can you give me suggestion what database I can use to store fingerprint template and corresponding user details
and How to get GUID of Installed Database...
GUID PRIVATE_POOL_DATABASE_ID =
{ 0x5086745d, 0xb3f9, 0x4da7, { 0x85, 0x9e, 0x9c, 0xc4, 0x33, 0x1c, 0xe4, 0x7c } };
|
|
|
|
|
You need to show us the code you are using. So you are using the msdn private pool sample as your database but have you actually checked it?
Did you try the entity sample to check the database is working?
I can't tell if the database is empty for example and you haven't enrolled any fingerprints so you have no pool to match against.
You are reporting a config error which usually means a database problem. Can I ask have you tried using the WINBIO_POOL_SYSTEM it is a little easier and at this stage you just need to get it working?
In vino veritas
modified 16-Apr-17 5:55am.
|
|
|
|
|
Yes using system pool its working fine I can enroll fingerprint also there was no problem
|
|
|
|
|
Ok so it's as we suspected the private pool database.
So in your program before using the private pool make sure you can access it. Things we are concerned about
1.) You don't have access rights to the private pool (It was created with different access rights to what you have now)
2.) It failed to create or it's empty
3.) The GUID for it is incorrrect
In vino veritas
|
|
|
|
|
Yes Now I Understood sir,
The problem is in configuration and starting the WbioSrvc
Thanks For the Help!
|
|
|
|
|
can we have call vb cox in 64 bit envirnoment
|
|
|
|
|
That depends on if the OCX is a 64-bit executable. It's most likely not.
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
Hello,
I need to find out a solution for below problem, can anyone please let me know what is the best algorithm for this problem,
I have to distribute sweets among 3 persons let A,B, C with no 5,3,2 respectively so total 10 sweets I have to distribute among these 3 without repeating again(if A has given then next time B or C but A should not come again).
so the sequence can be like as below,
Sol1: C,B,C,B,C,A,C,A,C,B
Sol2: B,C,A,C,B,C,B,C,A,C
Please let me know if any algorithm I can use for this problem
Thanks
asdsa
|
|
|
|
|
Ashish Ranjan Mishra wrote: I have to distribute sweets among 3 persons let A,B, C with no 5,3,2 respectively so total 10 sweets...
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
|
|
|
|
|
Hi,
I have vc++ service running on windows server 2003 R2 and on Windows server 2008 R2. The service is running fine on these servers. But, when I try to run it (install as service as start the service) in Windows Server 2012 R2, it displays the error 1150 The specified program requires a newer version of Windows. Can anyone help me fixing this?
Thanks.
|
|
|
|
|
|
Hello everyone!
I am trying to use a CMFCEditBrowseCtrl button (in CFeaturesDialog class) to read numbers (integer) from a text file and then pass those numbers in separate text files (in CDataDialog class), each file for every number. So I wrote:
void CFeaturesDialog::OnEnChangeMfceditbrowse1()
{
CString str;
m_browser.GetWindowTextW(str);
}
void CDataDialog::OnBnClickedOk()
{
CStdioFile file(L"over1.txt", CFile::modeCreate |
CFile::modeWrite);
}
e.g. if there 2 numbers in text file I open with CMFCEditBrowseCtrl I want to create over1.txt which will include the first number and over2.txt which will include the second number. How could I do that? Thank you in advance!
|
|
|
|
|
lolici wrote: I am trying to use a CMFCEditBrowseCtrl button (in CFeaturesDialog class) to read numbers...
e.g. if there 2 numbers in text file I open with CMFCEditBrowseCtrl... The CMFCEditBrowseCtrl class does not open files. That class is simply an editable text box that optionally contains a browse button.
Are the numbers in the source file (comma) delimited, or one per line? Since I do not know the answer to either of this, I will error on the side of the latter, something like:
CStdioFile fileSource("source.txt", CFile::modeRead);
CStdioFile fileDest;
CString strLine;
CString strFile;
int num = 1;
while (file.ReadString(strLine))
{
strFile.Format("over%d.txt", num++);
fileDest.Open(strFile, CFile::modeWrite);
fileDest.WriteString(strLine);
fileDest.Close();
}
fileSource.Close();
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
|
|
|
|
|
Do I have to include the text file (source.txt) in project?? Cause I got the message "source.txt file not found". The content of the file can change any time by any user is that a problem??
|
|
|
|