|
-
May 5th, 2004, 05:51 PM
#1
Thread Starter
New Member
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.
-
May 6th, 2004, 09:38 AM
#2
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.
-
May 6th, 2004, 09:58 AM
#3
Thread Starter
New Member
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.
-
May 7th, 2004, 05:55 PM
#4
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|