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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. COM
  4. How to read data from a serial port in COM

How to read data from a serial port in COM

Scheduled Pinned Locked Moved COM
comtutorial
12 Posts 4 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.
  • CPalliniC CPallini

    Are you confusing serial port with Component Object Model?

    If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
    This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke

    H Offline
    H Offline
    hari_honey
    wrote on last edited by
    #3

    No, I need to read data from serial port using ATL COM

    CPalliniC 1 Reply Last reply
    0
    • H hari_honey

      No, I need to read data from serial port using ATL COM

      CPalliniC Offline
      CPalliniC Offline
      CPallini
      wrote on last edited by
      #4

      Do you need to build a COM component or do you need to access MSComm?

      If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
      This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke

      In testa che avete, signor di Ceprano?

      H 1 Reply Last reply
      0
      • CPalliniC CPallini

        Do you need to build a COM component or do you need to access MSComm?

        If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
        This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke

        H Offline
        H Offline
        hari_honey
        wrote on last edited by
        #5

        Build COM Component

        CPalliniC 1 Reply Last reply
        0
        • H hari_honey

          Build COM Component

          CPalliniC Offline
          CPalliniC Offline
          CPallini
          wrote on last edited by
          #6

          And what are your doubts? Do troubles comes from COM programming or serial port API (i.e. be specific)?

          If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
          This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke

          In testa che avete, signor di Ceprano?

          H 1 Reply Last reply
          0
          • CPalliniC CPallini

            And what are your doubts? Do troubles comes from COM programming or serial port API (i.e. be specific)?

            If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
            This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke

            H Offline
            H Offline
            hari_honey
            wrote on last edited by
            #7

            I dont know how write program for reading serial port data using Component Object Model. I am searching for the program. :((

            CPalliniC 1 Reply Last reply
            0
            • H hari_honey

              I dont know how write program for reading serial port data using Component Object Model. I am searching for the program. :((

              CPalliniC Offline
              CPalliniC Offline
              CPallini
              wrote on last edited by
              #8

              Well, good luck. :)

              If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
              This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke

              In testa che avete, signor di Ceprano?

              L 1 Reply Last reply
              0
              • CPalliniC CPallini

                Well, good luck. :)

                If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
                This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke

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

                My 5

                Sohail

                H 1 Reply Last reply
                0
                • L Lost User

                  My 5

                  Sohail

                  H Offline
                  H Offline
                  hari_honey
                  wrote on last edited by
                  #10

                  what is MY 5?

                  CPalliniC 1 Reply Last reply
                  0
                  • H hari_honey

                    what is MY 5?

                    CPalliniC Offline
                    CPalliniC Offline
                    CPallini
                    wrote on last edited by
                    #11

                    Possibly he appreciated my reply and voted me 5. :)

                    If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
                    This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke

                    In testa che avete, signor di Ceprano?

                    1 Reply Last reply
                    0
                    • H hari_honey

                      Get data from serial port :)

                      Q Offline
                      Q Offline
                      QuickDeveloper
                      wrote on last edited by
                      #12

                      hi You need to treat the Serial Port as a file.If you are using Asynchronous communication you can use CommEvents. The Following links can help http://msdn.microsoft.com/en-us/library/aa450602.aspx[^] http://msdn.microsoft.com/en-us/library/aa450667.aspx[^] Hope that helps

                      "Every morning I go through Forbes list of 40 richest people in the world. If my name is not in there, I go to work..!!!"

                      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