PowerBuilder Forum

Members Login
Username 
 
Password 
    Remember Me  
Post Info TOPIC: Use Digital Persona FingerPrint Reader with Powerbuilder


Newbie

Status: Offline
Posts: 1
Date:
Use Digital Persona FingerPrint Reader with Powerbuilder


Hello everyone,

i would like to ask if any one of you guys have tried integrating a fingerprint scanner into powerbuilder? I have a device (digital persona u.are.u 4500) with SDK cd included and coding samples written in vb, java, c++, but no samples for powerbuilder, but atleast i could see its supplied com objects on powerbuilder's insertable oleobject control. (I am using powerbuilder 10.5 on XP machine)

Using VB, I did try saving some of my fingerprint templates on mysql database as well as verifying these saved templates, and everything works perfectly ok. What i would like to do now is to execute the 'verification' in Powerbuilder by using this oleobject 'digital persona fingerprint verification control', but somehow i could not get this one working..

Here is my script, pasted on 'on_complete(oleobject pfeatureset, oleobject pstatus) returns nothing' event of this ole control:

string empcode
int constat1, constat2, constat3, status
long FARAchieved
blob dbfpsample, fpsample
oleobject Templ, Verify, Res

empcode = 'EMPC1'
status = pstatus.status

if status = 0 then //successfull
selectblob finger_sample into :dbfpsample from employee_fpsamples where emp_code = :empcode;

//create instance of DPFPTemplate
Templ = CREATE OLEObject
constat1 = Templ.connecttonewobject('DPFPShrX.DPFPTemplate')
if constat1 < 0 then
destroy Templ
MessageBox("Connecting to COM Object Failed 2", "Error: " + String(constat1))
Return
end if

Templ = Templ.deserialize(dbfpsample)

Verify = CREATE OLEObject
constat2 = Verify.connecttonewobject('DPFPEngX.DPFPVerification')
if constat2 < 0 then
destroy Verify
MessageBox("Connecting to COM Object Failed 2", "Error: " + String(constat2))
Return
end if

Res = CREATE OLEObject
constat3 = Res.connecttonewobject('DPFPEngX.DPFPVerificationResult')
If constat3 < 0 then
destroy Res
MessageBox("Connecting to COM Object Failed 2", "Error: " + String(constat3))
Return
end if

Res = Verify.verify(pfeatureset, Templ)
FARAchieved = Res.FARAchieved
messagebox("Res.FARAchieved", FARAchieved)
If Res.Verified = True Then
messagebox("Verified", "Verified")
else
messagebox("Not Verified", "Not Verified")
End If
end if

 

Calling on this function :Verify.verify(pfeatureset, Templ) somehow returns 'error calling external object function verify...', and i could now figure out why is this so since this function is visible when viewed on powerbuilder's object browser (under programmable objects). I even tried Verify.object.verify(pfeatureset, Templ), but fires back the same result. And beside i am able to connect to the other 3 objects since variables constat1, constat2, and constat3 is giving me back 0 as result. I even tried calling the DPFPVerification's other function without error. But somehow this one, i don't know why =(... DPFPVerification's Verify function has this parameter when viewed on object browser: oleobject Verify(oleobject pfeatureset, oleobject pTemplate)

Could someone give me a clue why this is happening? Am i missing something? or am i passing the wrong type of arguments to this function?
Any response from you guys will be appreceiated much..

Thank you,
grace



__________________
Page 1 of 1  sorted by
 
Quick Reply

Please log in to post quick replies.

Tweet this page Post to Digg Post to Del.icio.us


Create your own FREE Forum
Report Abuse
Powered by ActiveBoard