Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. ATL / WTL / STL
  4. What's the diff between ALT and COM

What's the diff between ALT and COM

Scheduled Pinned Locked Moved ATL / WTL / STL
c++comquestionlearning
5 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Axter
    wrote on last edited by
    #1

    Cans someone please tell me what is the difference between ALT and COM. I have a book called "Begging ALT COM Programming", but it doesn't clearly defined the differences between what is ALT and what is COM. Top ten member of C++ Expert Exchange. http://www.experts-exchange.com/Cplusplus

    C G J T 4 Replies Last reply
    0
    • A Axter

      Cans someone please tell me what is the difference between ALT and COM. I have a book called "Begging ALT COM Programming", but it doesn't clearly defined the differences between what is ALT and what is COM. Top ten member of C++ Expert Exchange. http://www.experts-exchange.com/Cplusplus

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      ATL is a template library that makes it heaps easier to write COM components. Christian Graus - Microsoft MVP - C++

      1 Reply Last reply
      0
      • A Axter

        Cans someone please tell me what is the difference between ALT and COM. I have a book called "Begging ALT COM Programming", but it doesn't clearly defined the differences between what is ALT and what is COM. Top ten member of C++ Expert Exchange. http://www.experts-exchange.com/Cplusplus

        G Offline
        G Offline
        geo_m
        wrote on last edited by
        #3

        Or, in other words than Christian says, the COM is a technology, while the ATL is a tool. COM defines some rules (like that objects are refcounted etc.) while ATL helps you to implement these rules, saving you a time by providing helpers for keeping the rules etc. compare: creating the com object without ATL: IMyInterface* ipNewObject = NULL; HRESULT hr = CoCreateInstance( clsid, NULL, CLSCTX_INPROC_SERVER, &IID_IMyInterface, &ipNewObject ); if( ipNewObject ) { ipNewObject->SomeFunction(); ipNewObject->Release(); } return; with ATL: CComPtr<IMyInterface> spNewObject; spNewObject.CreateInstance("objectId"); if( spNewObject ) spNewObject->SomeFunction(); return;

        1 Reply Last reply
        0
        • A Axter

          Cans someone please tell me what is the difference between ALT and COM. I have a book called "Begging ALT COM Programming", but it doesn't clearly defined the differences between what is ALT and what is COM. Top ten member of C++ Expert Exchange. http://www.experts-exchange.com/Cplusplus

          J Offline
          J Offline
          Jorgen Sigvardsson
          wrote on last edited by
          #4

          ATL is not only a tool for building COM servers and COM clients, but is also a tiny GUI toolkit. WTL extends the GUI toolkit, making it complete and suitable for application programming. Good music: In my rosary[^]

          1 Reply Last reply
          0
          • A Axter

            Cans someone please tell me what is the difference between ALT and COM. I have a book called "Begging ALT COM Programming", but it doesn't clearly defined the differences between what is ALT and what is COM. Top ten member of C++ Expert Exchange. http://www.experts-exchange.com/Cplusplus

            T Offline
            T Offline
            ThatsAlok
            wrote on last edited by
            #5

            Axter wrote: Cans someone please tell me what is the difference between ALT and COM. yeap many!... COM is just a protocol set for making language independent component and ATL is one technique that use to create com objects.......

            "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

            cheers, Alok Gupta VC Forum Q&A :- I/ IV

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups