Results 1 to 4 of 4

Thread: Exposing an ActiveX Objects Properties

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2004
    Posts
    7

    Exposing an ActiveX Objects Properties

    Hi everyone, I was wondering if anyone knows how to expose an ActiveX DLL Objects funtions and properties through Visual Basic code. I'm trying to find out what properties are avaliable just by the objects name, and also what the object's properties are (such as GET, LET, function, sub, etc). Any help on this would be greatly appreciated. I hope my description of this isn't too confusing.

  2. #2
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961
    Use VB's built-in Object Browser. With the project open, and the .OCX component added to the project, press F2 and you can select it from a drop-down list and see all the members it has.

  3. #3

    Thread Starter
    New Member
    Join Date
    Feb 2004
    Posts
    7
    I think I may have explained my problem incorrectly. What I want to be able to do is write a COM object that has the ability to collect a list the public properties, functions, sub-routines in a similar way to the sp_sproc_colums command in MSSQL server lists all the input/output paramaters of a stored procedure. Once again, thank you guys in advance for any assistance you can provide.

  4. #4
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961
    Dream,

    This will probably require C++. You are venturing into the realm of COM and ATL, neither of which I am an expert in, but I can give you some launching off points.

    Search MSDN for "OLE for idiots", have a 12-pack of Mtn. Dew, plenty of Pizza Pockets, and prepare for a long, boring journey into the world of COM.

    I wish I had more to give but if you were to solve this problem, you would need to use the IUnknown method : QueryInterface.

    Dave

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