1. Placide Da Silva
  2. PowerBuilder
  3. Saturday, 20 October 2018 16:12 PM UTC

I just got a M2sys fingerprint for my application. The installation and the sdk went fine. I created an ole with activex provided. There is no powerbuilder code sample. I created an external function to integrate the activex to the application. But all the functions provided failed. Has anybody tried to integrate a fingerprint scanner to an application? 

Roland Smith Accepted Answer Pending Moderation
  1. Monday, 22 October 2018 13:06 PM UTC
  2. PowerBuilder
  3. # 1

Are there Visual Basic or VBScript examples? PowerBuilder will be similar.

Take a look at the ConnectToNewObject function in the PowerBuilder help.

Comment
There are no comments made yet.
Placide Da Silva Accepted Answer Pending Moderation
  1. Monday, 22 October 2018 19:08 PM UTC
  2. PowerBuilder
  3. # 2

Thanks for your reply.

I just tried it and it crashed. Here is the code:

integer result
OLEObject myoleobject
myoleobject = CREATE OLEObject
result = myoleobject.object.ConnectToNewObject( ole_1)

I created an external function for the functions recommended in the sdk integration. That one too crashed. Here is the code:

Function boolean IsClientInstalled ( &
 REF boolean my_con) &
Library "BioPlugInActX.ocx"  Alias For "BioPluginActX.IsClientInstalled"

Boolean b_istrue

ole_1.Object.IsClientInstalled(b_istrue)

Please help.

Thanks.

 

Comment
There are no comments made yet.
Roland Smith Accepted Answer Pending Moderation
  1. Monday, 22 October 2018 20:29 PM UTC
  2. PowerBuilder
  3. # 3

You aren't supposed to use external functions with OLE objects. Try the following instead. The argument to the ConnectToNewObject function is a string that is the OLE classname which should be in your documentation.

Boolean lb_istrue

Integer li_result

OLEObject myoleobject

myoleobject = CREATE OLEObject

li_result = myoleobject.ConnectToNewObject("OLE classname")

myoleobject.IsClientInstalled(lb_istrue)

myoleobject.DisconnectObject()

Destroy myoleobject

 

 

 
Comment
  1. Roland Smith
  2. Monday, 22 October 2018 20:45 PM UTC
I tried to find generic examples online but couldn't find many. There is a possibility that the IsClientInstalled doesn't have an argument and that boolean is the return value. I can't tell for sure, if you could post a section of example code from the SDK you downloaded, I can translate it to PowerScript.
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.