CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2003
    Location
    Bangalore, INDIA
    Posts
    180

    Variable uses an Automation type not supported in JScript

    I am creating an instance of a third party dll at client side using javascript. So far every thing works well. Even the properties and methods of this object showup when I keyin the object name followed by a '.'
    I am also able to retrieve well the values that the properties of this object are holding.
    But when I try executing it's methods, I am encountering the following problem.

    Microsoft JScript runtime error: Variable uses an Automation type not supported in JScript

    The particular method that I am invoking is probably returning a Long value.

    Somebody please tell me why this happens, and how I can over come this.
    I am using IE 6.0.2800.1106 (SP1,Q810847)

    Regards

    Suhaib

  2. #2
    Join Date
    May 2002
    Posts
    10,943

    Re: Variable uses an Automation type not supported in JScript

    Can you post your code so we can take a look at this?
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

  3. #3
    Join Date
    Jan 2003
    Location
    Bangalore, INDIA
    Posts
    180

    Re: Variable uses an Automation type not supported in JScript

    Fine.
    Here is the code snippet. I get error in the second line

    var CScan = new ActiveXObject("SCANW.SLibEx");
    var ret = CScan.InitLibrary('<license_key>');

    Just to reiterate - I am able to access the properies of CScan. It is only while accessing certain methods that I encounter this problem.
    The InitLibrary method seems to be returning a long value.

    Thanks in advance.

    Regards

    Suhaib

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured