Plex 2E

 View Only
Expand all | Collapse all

Cannot perform the method of an ActiveX control defined with a Ref Argument

  • 1.  Cannot perform the method of an ActiveX control defined with a Ref Argument

    Posted Jan 02, 2019 02:53 PM

    I have an ActiveX control with a method that is define as follows:

     

    int GetNumberOfImagesInFile(string FileName, ref int Error)

     

    I have the control on my panel and it's named BIDIB1.

    I'm getting a Microsoft VBScript runtime error identified as a "Type mismatch" with this statement:

    nbrItmes = BIDIB1.GetNumberOfImagesInFile(strTheFileName, lTheErrorCode)

     

    Has anyone encountered this kind of situation?  My research indicates that this should perform without problem.

     

    I appreciate any help. 

    Thanks,

    Gary



  • 2.  Re: Cannot perform the method of an ActiveX control defined with a Ref Argument

    Posted Jan 03, 2019 08:56 AM

    i would try 

     

    GetNumberOfImagesInFile(string FileName)



  • 3.  Re: Cannot perform the method of an ActiveX control defined with a Ref Argument

    Posted Jan 03, 2019 11:12 AM

    That results in an "Argument not optional" error.



  • 4.  Re: Cannot perform the method of an ActiveX control defined with a Ref Argument

    Posted Jan 04, 2019 12:50 AM

     can you share local model? a tiny example? the activex



  • 5.  Re: Cannot perform the method of an ActiveX control defined with a Ref Argument

    Posted Jan 17, 2019 02:42 PM

    I'm using the Image SDK ActiveX from Black Ice.

    http://www.blackice.com/

    The method is in the BIDIB control.

     

    One can acquire a free download from their site, if you want to give it a closer look.

    Probably easier for you to do it that way than for me to come up with a little model.