Sign in to follow this  
Followers 0
markdradey

Javascipt/ActiveX Type Mismatch

2 posts in this topic

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



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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0