Griaule Biometrics

Home » Forums » FINGERPRINT SDK » VB Specific » AxGrFinger - cannot find
4 replies [Last post]
joelbar
Offline
Joined: 2008-10-10
Rate this post:
0
No votes yet
AxGrFinger - cannot find

Hello everyone,

I am developing a project with a partner for school. We have to create a login interface using 3 factors:

Magnetic Card Reader, Username and PW, and the Fingerprint.

We are not very good at programming, and we have NEVER working with other API, or COMs or whatever. Only native VisualBasic procedures have been learned. We are using Visual Basic 2005.

I have the microsoft finger reader, and have already used your sample.

But I need help!!

Look at this:

http://blogs.msdn.com/coding4fun/archive/2007/03/06/1815291.aspx

Notice the word AxGrFinger, under his References. The author mentions this control library allows functions to be used such as "Finger Down". I wanted to first gain access to these events so I can play around with them, and figure something out.

Any help is GREATLY appreciated!

joelbar
Offline
Joined: 2008-10-10
Rate this post:
0
No votes yet

After a long time of analyzing your code, and trying to understand it one thing still stands in my path, and that is the AxGrFingerXLib referenced file.

Look at this:

Notice I cannot initialize the reader because I don't have the same referenced library.

Please help me.

joelbar
Offline
Joined: 2008-10-10
Rate this post:
0
No votes yet

OK!

I've figured out how to create an interop assembly, and embed the activeX controls in the program.

HOWEVER, when I try to initialize the ActiveX library using this line:

GrFingerX.Initialize() I get an error with an invalid ActiveX State Exception.

Any help please??

UPDATE:

Ok I found the cause, but i am completely lost as to why it's doing this nonsense.

Here is my FULL code:

Imports GrFingerXLib

Public Class Form1
Dim err, temp As Integer
Public WithEvents _GrFingerX As New AxGrFingerXLib.AxGrFingerXCtrl

Private Sub MainForm_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim err, temp As Integer
err = _GrFingerX.Initialize()
If err < 0 Then
MessageBox.Show("Initialization Failed", "Error", MessageBoxButtons.OK)
Else
temp = _GrFingerX.CapInitialize()
End If
End Sub

Private Sub FormClose(ByVal sender As System.Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles MyBase.Closing
_GrFingerX.Finalize()
_GrFingerX.CapFinalize()
End Sub

Private Sub AxGrFingerXCtrl1_SensorPlug(ByVal sender As Object, ByVal e As AxGrFingerXLib._IGrFingerXCtrlEvents_SensorPlugEvent) Handles AxGrFingerXCtrl1.SensorPlug
AxGrFingerXCtrl1.CapStartCapture(e.idSensor)
End Sub
End Class

On the line above that is bolded, when I set a breaker on it and run the program, I use the step through to trace line by line. When I get to the _GrFingerX.Initialize(), it gives me the error I posted before this UPDATE. But when I trace the program, and place my cursor over the _GrFingerX in the bolded line above and view the properties, then trace through, it doesn't give me an error, HOW IS THAT POSSIBLE?????

Here is the error:

joelbar
Offline
Joined: 2008-10-10
Rate this post:
0
No votes yet

Nevermind, I figured it all out. I just made another class similar to your Util class, and it works!

Ill keep you guys posted on my updates. i know I'm going to need more help.

Thanks for this great user-friendly SDK, and your samples!

By the way, how do I get rid of the splash screen that starts up with the program? Do I need to buy it?

webmast
Offline
Joined: 2006-10-26
Rate this post:
0
No votes yet

Dear Simjay,

The splash screen is only on Trial version. The registered version does not have it.

Best Regards,

---
Griaule Support Team
Griaule Biometrics