markdradey 0 Posted July 23, 2014 Hi, I am using a activex written in Delphi and am trying to access it from Internet Explorer. When I try to access the function I am getting type mismatch error. Javascipt/HTML Code: <OBJECT id="AScan" name="AScan" classid="clsid:61EC4ECB-81B6-4309-B7B5-8F7755830EEF" codebase="ScanProj.cab#version=1,0,17,1" width="5" height="5"> </OBJECT> <input type="button" name="Button" value="Button" onclick="doscan()" /> <script> function doscan() { AScan.scanRegions("1234",1,"test.jpg"); } </script> Delphi Function Declaration procedure TScanX.scanRegions(const ref: widestring; no: integer; const path: widestring); Thank you in advance Mark Share this post Link to post Share on other sites
Richard Robertson 186 Posted July 28, 2014 This forum is for using the AutoIt software and your post has nothing to do with it. You may not get the help you need here and are better off looking in a dedicated web development or Delphi forum. Share this post Link to post Share on other sites