Some basic COM question...
        Posted  
        
            by smwikipedia
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by smwikipedia
        
        
        
        Published on 2010-05-13T09:15:22Z
        Indexed on 
            2010/05/13
            9:34 UTC
        
        
        Read the original article
        Hit count: 393
        
I have just finished my first COM server DLL. And it runs smoothly. So I'd like to show my understanding for now and hear your critics.
1- How COM simply works? COM - "The Call Chain"
COM Lib methods -> Traditional DLL exports -> Classes encapsulated in the COM DLL
2- With C++, the benefits like "interface" in OOP can only be taken advantage of at the source level. With COM, these benefits can be used at a binary level.
3- Some illustration about interface
&pInterface -------> pInterface ----------> Interface-----------------> methods
  Ixx **         Ixx *      (method table)
 (void **)
A Interface is a data structure in memory. It's nothing but a memory area containg a method table.
Is my understanding alright?
Thanks for your revision.
© Stack Overflow or respective owner