FingerPrint capturing from DLL-file is not initiating
Hi, I have a problem initiating a fingerprint DLL I am testing.The program is called Griaule, with the DLL + lib GrFinger
I am starting slowly, so the only thing I want to do is to open a bmp-file that I have in the computer, that contains a fingerprint. Then I would like GrFinger to calculate the template of the finger, that is the "thing" that it can use to recognize the finger if I will open another picture, if of course I save this template somewhere, but that is not the problem yet.
my problem is to get the Capeturing initiated
according to: "GrFinger 4.1 DLL Developer's Manual ENUS.pdf"
that can be downloaded with the free version of GeFinger from:
http://www.griaule.com/page/en-us/downloads
To open a fingerprint, is the same as to capture it from a finger-sensor, so I want to initiate the capturing, but I can't make it work, I either get "access violation", or I can't compile because the parametres of GrCapInitialize() is wrong... how do I create the StatusEventHandler, so the fallowing will work:
retVal= GrCapInitialize (StatusEventHandler);
unfortunaly I am using plain old microsoft visual c++ 6.0, so I can't get the c++.Net examples that they deliver to work.
my code looks like this until now, but it doesn't work
in the h-file:
// Callbacks
GRCAP_STATUS_EVENT_PROC *myCallBack;
GRCAP_FINGER_EVENT_PROC *myFingerCallBack;
GRCAP_IMAGE_EVENT_PROC *myImageCallBack;
in the cpp-file
// stuff that needs to be started before the fingerprint recognition can start.
//Initialize the library
result = GrInitialize();
retVal = GrCapInitialize (&CTrainingDlg::StatusEventHandler("File", myCallBack));
// Start capturing from the plugged sensor.
startCapVal = GrCapStartCapture("File", myFingerCallBack, myImageCallBack);
// this opens the open file dialog window
if(m_openFile->DoModal() == IDOK)
{
char temp[100];
strcpy (temp, m_openFile->GetPathName());
ImageLoaded = GrCapLoadImageFromFile( temp, resolution );
if (ImageLoaded != GR_OK)
{
AfxMessageBox("Can't open file");
}
}
and I do have the GrFinger.lib included in my project, so I dont think that is the problem, also because result = GrInitialize(); is working fine, and it gives the right result.
I would be very happy to get some help on this problem, thanks.
Best regards
mpk