|
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??
|
|
|
|
|
lolici wrote: Do I have to include the text file (source.txt) in project?? That's the name of the file you would retrieve from CMFCEditBrowseCtrl .
"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
|
|
|
|
|
The code you wrote above must be written in class void CDataDialog::OnBnClickedOk() ?Cause I have declare this class in a different dialog. I'm sorry for asking again, I got a little bit confused.
|
|
|
|
|
Where is the code to read the original file, and where do you store the two numbers? Once you have the numbers then writing them to their separate files is quite straightforward. It would be better if you generate the output file names dynamically, rather than hard coding them. It is also better to not use the W suffixes on Windows API calls; let the compiler generate the correct names based on your project settings.
|
|
|
|
|
This is a simplified version of the problem.
We have an array of numbers (between 0 and X-1), at each round, we choose a range of numbers that we compare and only promote the biggest one and eliminate the rest. At each round, we need to output the *original* indices of the numbers that have been eliminated.
This is best explained using an example:
Here is the input:
8
4
1 0 3 6 2 4 7 5
1 3
2 4
1 3
0 1
Output: 4 lines, the original index of the losers at each round
1 2
4 5
3 7
0
Here is a diagram of how the output was obtained, `[]` means the numbers inside the brackets are the ones being compared.
1 [0 3 6] 2 4 7 5
1 6 [2 4 7] 5
1 [6 7 5]
[1 7]
7
The basic idea is that we want to output the original indices of the number eliminated at each round.
**Approach:**
Model each number as a pair, with the second entry representing the original index. So we have the following:
(1,0) [(0,1) (3,2) (6,3)] (2,4) (4,5) (7,6) (5,7)
(1,0) (6,3) [(2,4) (4,5) (7,6)] (5,7)
(1,0) [(6,3) (7,6) (5,7)]
[(1,0) (7,6)]
[7,6]
Is this a promising approach? What is the best way to complement it efficiently?
Is there a better, more efficient approach that is easier to implement?
|
|
|
|
|
Is it a homework?
What is your variant of the solution? What does not work in your solution?
|
|
|
|
|
I need C++ source code for calculating gauge and absolute pressures at any height in water.
|
|
|
|
|
It's a straight calculation but you can only approximate it the formula is the same no matter what computer language you use.
absolute pressure = gravity at surface * density of water * depth you are in the water (height of column of water above aka the weight you are holding up really)
The second term varies by all the things that can make water density vary such as water temperature, salinity etc.
So as any scuba diver knows the calibrations for fresh water is very different to the calibrations for ocean diving and dive computers exist for a reason.
However if you are after the layman answer it's absolute pressure = 1atm * 1 * depth ... so its pretty uniform 9.8m adds 1g (1 atm) pressure to you and it's not hard to write that in C++ for anyone who can write a line of code
pressure = 1 atm * depth
In vino veritas
modified 2-Apr-17 10:39am.
|
|
|
|
|
Member 13100668 wrote: any height
Don't get started on that, unless that's specifically the goal of this assignment. For example, with 100km of water you're already around 1GPa at the bottom, probably turning the water at the bottom into exotic ice (it depends on the temperature of course) with a density of about 1.3 times the normal density of water (so density varies significantly across the column, even more significantly than if you have layers with different temperatures/salinities which is already relevant enough that you have to care about if you're doing Serious Business). Also going that high in altitude makes g drop significantly for the higher layers of water.
|
|
|
|
|
There are mathematical formulas for these which can be simply implemented as C code.
The gauge pressure formula should be provided by the manufacturer of the gauge because it contains gauge specific constants.
Calculating pressure from depth is rather seldom in the oceanographic area. Depth sensors are measuring pressure and the pressure value itself is recorded in dbar (because 1 dbar corresponds to about 1 metre). To get the absolute pressure these sensors usually measure the offset (air pressure) before deployed and subtract this offset from all under water measurements. The advantage of this method is that this eliminates also offset drift errors.
See the Unesco technical papers in marine Science 44: Algorithms for computation of fundamental properties of seawater (PDF)[^] for formulas.
Some of them might be required for the gauge pressure calculation.
It contains also a formula for calculating depth from pressure in seawater which is shown on his own also at Code10[^].
|
|
|
|
|
roh = mgh obviously.
Now you need to know the thickness of the air at any point on the planets surface and adjust for air pressure.
|
|
|
|
|
I am developing a native C++ DLL and unit tests for this DLL. When I try to launch a test, I always get the above mentioned message.
At first glance it seems that a DLL or some DLLs can not be found. However, the unit test DLL is created in the same folder as the DLL to be tested. The working directory is exactly the same as the directory the DLLs reside in. Therefore, this reason can be ruled out.
The IDE is Microsoft Visual Studio 2013 update 4 and the operating system is Windows 10.
How can I get my unit test running? I hope I do not need to bother with command line tools or build scripts.
|
|
|
|