Jump to content
Sign in to follow this  
markdradey

Javascipt/ActiveX Type Mismatch

Recommended Posts

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

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  

×
×
  • Create New...