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. Writing a VERY simple COM Client

Writing a VERY simple COM Client

Scheduled Pinned Locked Moved COM
c++comtutorial
3 Posts 3 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.
  • J Offline
    J Offline
    Jeremy B
    wrote on last edited by
    #1

    Hey all, I'm pretty new to COM programming in C++ (been doing it in VB for quite a while). I'm looking for an absolutely bare-bones, "instantiate one object, make one method call and spit out the results" snippet of code showing me how to write a C++ client app that uses a COM object. Like I said, doesn't have to be anything spectacular, I just want to see the steps involved in using a COM object in C++. I searched the site for simple examples, and even searched on the web some, but didn't find anything (if you know of any good examples, I would appreciate the URLs). Thanks in Advance Jeremy

    M Brian C HartB 2 Replies Last reply
    0
    • J Jeremy B

      Hey all, I'm pretty new to COM programming in C++ (been doing it in VB for quite a while). I'm looking for an absolutely bare-bones, "instantiate one object, make one method call and spit out the results" snippet of code showing me how to write a C++ client app that uses a COM object. Like I said, doesn't have to be anything spectacular, I just want to see the steps involved in using a COM object in C++. I searched the site for simple examples, and even searched on the web some, but didn't find anything (if you know of any good examples, I would appreciate the URLs). Thanks in Advance Jeremy

      M Offline
      M Offline
      Michael Dunn
      wrote on last edited by
      #2

      Intro to COM part 1 perhaps? --Mike-- My really out-of-date homepage He who laughs last, didn't get the punchline and is just laughing so he won't look silly. Sonork - 100.10414 AcidHelm Big fan of Alyson Hannigan.

      1 Reply Last reply
      0
      • J Jeremy B

        Hey all, I'm pretty new to COM programming in C++ (been doing it in VB for quite a while). I'm looking for an absolutely bare-bones, "instantiate one object, make one method call and spit out the results" snippet of code showing me how to write a C++ client app that uses a COM object. Like I said, doesn't have to be anything spectacular, I just want to see the steps involved in using a COM object in C++. I searched the site for simple examples, and even searched on the web some, but didn't find anything (if you know of any good examples, I would appreciate the URLs). Thanks in Advance Jeremy

        Brian C HartB Offline
        Brian C HartB Offline
        Brian C Hart
        wrote on last edited by
        #3

        If you ever are interested in getting into DCOM, I have a start-to-finish tutorial on this site. It is very easy to follow, and is simple. All you do is write a COM object with one method. You call the method, and the method tells you, "Hello, World!". The tutorial starts at http://www.codeproject.com/com/HelloTutorial1.asp. I really recommend you follow straight through and build things yourself while following along. Hope this is a good intro! Really, the usefulness of COM comes out in doing things between more than one computer, but you can put both the "server" and the "client" together on the same computer and you still get everything. Hope it helps! :) Sincerely Yours, Brian Hart "And that's the news from Lake Wobegon, where all the women are strong, the men are good-looking, and the children are above-average." - Garrison Keillor

        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