Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Type Incompatible When Calling ActiveXObejct's Method in Web Page

Type Incompatible When Calling ActiveXObejct's Method in Web Page

Scheduled Pinned Locked Moved Web Development
helpjavascriptsysadmindata-structuresdebugging
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • X Offline
    X Offline
    Xiaoming Qian
    wrote on last edited by
    #1

    Here is my code: <object id="ZKFPEngX1" classid="CLSID:CA69969C-2F27-41D3-954D-A48B941C3BA7"> </object> <script id="ZKFPEngX1_OnCapture" for=ZKFPEngX1 event=OnCapture(ActionResult,ATemplate) > LastCaptureTemplate = ATemplate; //Call a Web Server's method FingerPrint.GetCqryFingerData(GetCqryFingerDataCallback); </script> <script type="text/javascript" language="javascript"> var ZKFPEngX1 = document.getElementById("ZKFPEngX1"); var RegFeatureChanged = false; var LastCaptureTemplate; ZKFPEngX1.InitEngine() ZKFPEngX1.BeginCapture(); function GetCqryFingerDataCallback(response) //Web Server method call complete { var t = response.value.Tables[0]; var FoundPID = ""; for (i=0;i<t.Rows.length;i++) { var StoredTemplate = t.Rows[i].FINGERPRINT; //FINGERPRINT is byte arrays(JavascriptType) // VerFinger generate an error: Variant is not an array if (ZKFPEngX1.VerFinger(LastCaptureTemplate, StoredTemplate, false, RegFeatureChanged)) { FoundPID = t.Rows[0].PID; break; } } } </script> And here is our vender's SDK documentation: VB language expression is used here, and fingerprint template Variant variable show as one-dimension byte arrays. Function VerFinger(byval regTemplate, verTemplate, AdoLearning As Boolean, byval AregFeatureChanged As Boolean) As Boolean Events: OnCapture(ActionResult AS Boolean, ATemplate) When calling VerFinger(), it generate an error: Variant is not an array.I type 'typeof LastCaptureTemplate' in the debug window and it returns 'Unknown'. I think this is because VB array and Javascipt array are Incompatible. Can any one help me? Any idea will be appropriate. Thanks a lot. Also thanks CodeProject. I have got a lot of help here.

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups