• Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
  • Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

Anyone recommend a good resource for COM?

Collapse
X
  •  
  • Filter
  • Time
  • Show
Clear All
new posts

    Anyone recommend a good resource for COM?

    Returning to contract on a project I worked with 3 years back as an employee. Client-server C++/MFC app where server & client apps communicate through (D)COM. Although COM itself is not too bad I remember loads of pain as far as registry setup, IDL compilers, etc were concerned.

    Any recommendations on a decent book covering all this ugliness? I can certainly justify some time reaquainting myself since they understand I haven't used it for 3 years, but prefer to be quick off the mark and score some points.
    Originally posted by MaryPoppins
    I'd still not breastfeed a nazi
    Originally posted by vetran
    Urine is quite nourishing

    #2
    Originally posted by d000hg View Post
    Returning to contract on a project I worked with 3 years back as an employee. Client-server C++/MFC app where server & client apps communicate through (D)COM. Although COM itself is not too bad I remember loads of pain as far as registry setup, IDL compilers, etc were concerned.

    Any recommendations on a decent book covering all this ugliness? I can certainly justify some time reaquainting myself since they understand I haven't used it for 3 years, but prefer to be quick off the mark and score some points.
    For a low level background I seem to recall the Don Box books (Essential/Effective COM?) were held in favourable esteem, along with Inside COM/Inside DCOM. They're all out of print now though, but you should be able to pick them up relatively cheap second hand on Amazon Marketplace.

    I can't remember whether any of those titles covered COM programming with MFC and ATL though.
    Where are we going? And what’s with this hand basket?

    Comment


      #3
      MFC wasn't integrated with COM in the system, I don't know if MFC has wrappers around COM but if so they weren't used. It was mainly 'pure' COM over a network, not much in the way of ATL and so on (IIRC).

      Don Box I remember using in the past, it seemed hard going back then but COM ain't no picnic
      Originally posted by MaryPoppins
      I'd still not breastfeed a nazi
      Originally posted by vetran
      Urine is quite nourishing

      Comment


        #4
        Nobody in their right mind would use MFC's wrappers for COM. Really really awful way of doing things. ATL always was much better.

        Can you send me as a substitute?
        Will work inside IR35. Or for food.

        Comment


          #5
          Originally posted by VectraMan View Post
          Nobody in their right mind would use MFC's wrappers for COM. Really really awful way of doing things. ATL always was much better.
          Glad it didn't use that then Although no ATL either, everything from scratch.

          Can you send me as a substitute?
          Maybe when I find something better
          Originally posted by MaryPoppins
          I'd still not breastfeed a nazi
          Originally posted by vetran
          Urine is quite nourishing

          Comment


            #6
            Originally posted by VectraMan View Post
            Nobody in their right mind would use MFC's wrappers for COM. Really really awful way of doing things. ATL always was much better.
            That seems to match my recollection as well - and Microsoft's recommendation.
            Where are we going? And what’s with this hand basket?

            Comment


              #7
              Originally posted by d000hg View Post
              Although no ATL either, everything from scratch.
              I've done COM a few times really from scratch, i.e. not even messing about with MIDL just directly using IDispatch. In some ways it's easier, especially if you're just using an in process server, but it means you don't get any compile time checking of parameter types etc.

              MIDL generates the equivalent code for you, and presents you with local functions that magically call the remote server. But like all such tools it's great when everything works and a complete nightmare when it doesn't, and sometimes it's better to have full control yourself.

              In answer to the question, I remember the old original "Inside OLE" MS book, not to be confused with "Inside OLE 2" which preceeded it (yes preceeded). I've never found anything better since.
              Will work inside IR35. Or for food.

              Comment

              Working...
              X