New to COM

This is a discussion on New to COM within the Windows Programming forums, part of the Platform Specific Boards category; Hello I have just read my first tutorial about COM and coded my first app with it. I want to ...

  1. #1
    Registered User
    Join Date
    Sep 2003
    Posts
    87

    New to COM

    Hello I have just read my first tutorial about COM and coded my first app with it.

    I want to know is there any way to understand what methods are hidden behind any particular interface. Let's say I know what the IShellLink interface is for, but how can I view it's methods?
    Or I must find documentation about the interface?

    EDIT: The compiler knows about the member functions at compile time.
    Last edited by Gravedigga; 11-28-2004 at 12:52 PM.

  2. #2
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,892
    You must find either documentation, source code (.h or .idl) or a type library, if one exists. Type libraries only exist for actual implementations, though, so you need one of those, too.

    Since you're able to compile, you already have a .h.

    But documentation is best, because usually only the documentation tells you exactly what a method is supposed to do.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  3. #3
    Yes, my avatar is stolen anonytmouse's Avatar
    Join Date
    Dec 2002
    Posts
    2,544
    There are a couple of good type library viewers.

    The first is the Object Browser included with MS Office Applications. Open Word. Goto Tools->Macro->Visual Basic Editor. Then goto View->Object Browser. To load other type libraries goto Tools->References.

    The other is the MS OLE-COM Object Viewer. This is more complex than the Office object browser. It is included with the platform SDK and other tools or is available as a seperate download from Microsoft.

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21