[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 167
  • Last Modified:

COM Objects, how to discover what they are

I'll try to phrase this question in a way that makes sense..

I've only recently been turned on to the power of COM objects and what their potential is, so I've had a little fun with Outlook and automating it.  However, I'd like to look at other applications and the way THEY can be "played with" using COM Objects.

Unfortunately, not every program is as simple as "Outlook.Application", and not every program has a nice site set up like MSDN to show bluntly what these things are.

How do I go about finding what this is in other programs besides Microsoft Applications? (For instance, I know Winamp's would be "WinampCOM.Application").
0
Jezuit
Asked:
Jezuit
  • 2
  • 2
1 Solution
 
AzraSoundCommented:
Not every application is going to expose an object model.  You can use this tool:
http://www.vbaccelerator.com/home/VB/Utilities/ActiveX_Documenter/VB6_ActiveX_Documenter.asp

To investigate exes/dlls/ocxs/olbs etc that may show a particular application provides a COM interface you can utilize.
0
 
JezuitAuthor Commented:
Understood, at that.  Is every application going to have, even though it is not widely known or publicly distributed, a way to perform automation in this way?  Or can some applications simply choose not to allow things of this nature?
0
 
AzraSoundCommented:
Most applications, in fact, will not provide automation in this way.  For example, if you create a simple exe in VB there is no way to automate it.  You would have to create an ActiveX EXE (ActiveX and COM are one in the same).  Unless the developer of the program decides from inception that they are going to expose their application in this way, it will not be available to you.
0
 
JezuitAuthor Commented:
How terribly unfortunate... That would've been a great deal of fun to have, in all truth.  Can't win them all, I suppose.

Thanks for your time.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now