Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 215841
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T18:30:31+00:00 2026-05-11T18:30:31+00:00

I have an ActiveX/COM DLL. It contains many methods and properties. I would like

  • 0

I have an ActiveX/COM DLL. It contains many methods and properties. I would like to be able to ask it if it has a particular symbol, as per the following snippet:

If HasMethod( "StdLib.DLL", "ReadFileE" ) Then
    ...
End If

Is there a way to do this from, say, VBScript or JScript? If not, where do I go to get the information I need?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T18:30:31+00:00Added an answer on May 11, 2026 at 6:30 pm

    After Googling around not quite finding what I wanted, I remembered the Edanmo site which got me thinking about TLBINF32.DLL, downloading Microsoft’s TLBINF32.CHM and reading up on GetMembersWithSubStringEx. Below is the implementation of it (done in VB6 with a reference to TLBINF32.DLL), some demo VBScript and output, and the wrapping of that functionality in some VBA.

    Public Function SearchTLIMethodsAndProperties(sTypelib As Variant, sSymbol As Variant) As Variant
        Dim SI As SearchItem
        Dim aResults As Variant
        Dim bFound as boolean
        Dim Groups(1) As InvokeKinds
        Groups(0) = INVOKE_FUNC Or INVOKE_PROPERTYGET Or _
            INVOKE_PROPERTYPUT Or INVOKE_PROPERTYPUTREF
    
        ReDim aResults(0)
        bFound = False
        With TypeLibInfoFromFile(sTypelib)
        .SearchDefault = tliStClasses Or tliStEvents
        For Each SI In .GetMembersWithSubStringEx(sSymbol, Groups)
            bFound = True
            arr.AAdd_PostIncrement aResults, SI.Name
        Next
        End With
        if bFound then 
        ReDim Preserve aResults(UBound(aResults) - 1)
        end if
        SearchTLIMethodsAndProperties = aResults
    End Function
    

    VBScript demo. The above code was included in my StdLib DLL in the Registry coclass.

    Dim O, R
    Set O = CreateObject("Std.Registry")
    Set R = CreateObject("Std.Arrays")
    WScript.Echo R.ShowStructure( O.SearchTLIMethodsAndProperties( "MSSCRIPT.OCX",""))
    

    Output from the demo (script was run in SciTE).

    >cscript "C:\foo\foo.vbs"
    {Add,AddCode,AddObject,AllowUI,Clear,CodeObject,Column,Count,Description,Error,Eval,ExecuteStatement,HasReturnValue,HelpContext,HelpFile,Item,Language,Line,Modules,Name,NumArgs,Number,Procedures,Reset,Run,SitehWnd,Source,State,Text,Timeout,UseSafeSubset}
    >Exit code: 0
    

    Finally, the VBA code. A cell has a symbol in it and this routine finds it or returns an error string.

    Public Function LookupSymbol(sSym As String) As String
        Dim aRes As Variant
        aRes = reg.SearchTLIMethodsAndProperties("MSSCRIPT.OCX", sSym)
        Dim i As Integer
        LookupSymbol = "!!NotFound!!"
        For i = 0 To UBound(aRes)
        If LCase$(aRes(i)) = LCase$(sSym) Then
            LookupSymbol = sSym
            Exit For
        End If
        Next
    End Function
    

    Looking back on it now, I think I might pass in the path to the DLL/OCX as the first parameter.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a third-party ActiveX dll, and I'd like to register it programmatically at
We have a windows application that contains an ActiveX WebBrowser control. As part of
I have an ActiveX control written using the MS ATL library and I am
I have an ActiveX plugin that we need (if possible) to run in Firefox.
Ok, so here is the scenario: I have an activeX that uploads files using
I have a tree of active record objects, something like: class Part < ActiveRecord::Base
I have an ActiveX HTML Object as defined here: <object id=HSMBTPrintX1 width=350 height=350 classid=CLSID:68d05400-18a6-4b39-b3ff-a17d77c1eddf
I have an application which embeds a button control via ActiveX. The button was
Assuming I am only using them for normal GUI programs (no COM, no ActiveX,
I have a VB6 Standard EXE with no embedded type library. I'd like to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.