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. COM
  4. Do I have to use ATL ??

Do I have to use ATL ??

Scheduled Pinned Locked Moved COM
c++databasecomsysadminquestion
7 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.
  • K Offline
    K Offline
    Krouer
    wrote on last edited by
    #1

    Hello all, I'm new here and newbie in COM. I have to create a COM server. In this COM server, I exposed many interfaces to manage a specific database. I want my COM server to be used from a C++ client, VB client and ASP client. My interfaces do only search, comparison and file reading. Do I need to use the ATL? What are the benefit of using the ATL in this case? Thanks in advance, Regards, Bruno

    M 1 Reply Last reply
    0
    • K Krouer

      Hello all, I'm new here and newbie in COM. I have to create a COM server. In this COM server, I exposed many interfaces to manage a specific database. I want my COM server to be used from a C++ client, VB client and ASP client. My interfaces do only search, comparison and file reading. Do I need to use the ATL? What are the benefit of using the ATL in this case? Thanks in advance, Regards, Bruno

      M Offline
      M Offline
      Michael P Butler
      wrote on last edited by
      #2

      If you want to write a COM object in C++, then ATL makes life a lot easier. What other options have you considered? If you are a new to COM, I suggest you get a copy of Don Box's Essential COM which will help you understand how it works. ATL provides a lot of the boilerplate code which saves a lot of time. Michael :-)

      K 1 Reply Last reply
      0
      • M Michael P Butler

        If you want to write a COM object in C++, then ATL makes life a lot easier. What other options have you considered? If you are a new to COM, I suggest you get a copy of Don Box's Essential COM which will help you understand how it works. ATL provides a lot of the boilerplate code which saves a lot of time. Michael :-)

        K Offline
        K Offline
        Krouer
        wrote on last edited by
        #3

        Michael P Butler wrote: If you want to write a COM object in C++, then ATL makes life a lot easier. What other options have you considered? I have considered to do all the stuff my self because I hate to use the MFC and think that ATL is kind of MFC related and it's only for graphical COM. As I don't know if I'm right or not, I ask you if it is. From what I understand from your post, I'm thinking that I was totally wrong. Bruno

        N M 2 Replies Last reply
        0
        • K Krouer

          Michael P Butler wrote: If you want to write a COM object in C++, then ATL makes life a lot easier. What other options have you considered? I have considered to do all the stuff my self because I hate to use the MFC and think that ATL is kind of MFC related and it's only for graphical COM. As I don't know if I'm right or not, I ask you if it is. From what I understand from your post, I'm thinking that I was totally wrong. Bruno

          N Offline
          N Offline
          Not Active
          wrote on last edited by
          #4

          Sorry but you are wrong. ATL is not like MFC, in fact, in my opinion, MFC 7 has taken a lot of tricks from ATL. ATL is very helpful in putting together COM components, graphical or otherwise. After reading Essentila COM you may also want to look at Essential ATL.

          C L 2 Replies Last reply
          0
          • N Not Active

            Sorry but you are wrong. ATL is not like MFC, in fact, in my opinion, MFC 7 has taken a lot of tricks from ATL. ATL is very helpful in putting together COM components, graphical or otherwise. After reading Essentila COM you may also want to look at Essential ATL.

            C Offline
            C Offline
            Carlos Antollini
            wrote on last edited by
            #5

            You can make a lot of things with ATL, from common controls to simple com dll. I use all day ATL, for make com components.... Best Regards... Carlos Antollini.

            1 Reply Last reply
            0
            • K Krouer

              Michael P Butler wrote: If you want to write a COM object in C++, then ATL makes life a lot easier. What other options have you considered? I have considered to do all the stuff my self because I hate to use the MFC and think that ATL is kind of MFC related and it's only for graphical COM. As I don't know if I'm right or not, I ask you if it is. From what I understand from your post, I'm thinking that I was totally wrong. Bruno

              M Offline
              M Offline
              Michael P Butler
              wrote on last edited by
              #6

              ATL is nothing like MFC. ATL was written to make life easier for COM programmers. The only gui stuff in ATL was added to make writing ActiveX controls easier. With ATL you can pretty much create a simple COM object like you seem to need just by running the wizard. As somebody who learnt COM the hard way, I really do suggest that you use ATL rather than having to write everything from scratch. Michael :-)

              1 Reply Last reply
              0
              • N Not Active

                Sorry but you are wrong. ATL is not like MFC, in fact, in my opinion, MFC 7 has taken a lot of tricks from ATL. ATL is very helpful in putting together COM components, graphical or otherwise. After reading Essentila COM you may also want to look at Essential ATL.

                L Offline
                L Offline
                Lost User
                wrote on last edited by
                #7

                I hate the messy ATL code and like MFC a lot. By the way, you don't have to do anything GUISH to use MFC (no need to get into flame mode, it's just my opinion).

                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