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. Windows Forms
  4. serial communication in window form

serial communication in window form

Scheduled Pinned Locked Moved Windows Forms
c++
9 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.
  • Z Offline
    Z Offline
    zaftblitz
    wrote on last edited by
    #1

    i want to ask... can i do serial comunication by using normal window form application using VC++ 2008 because there has an icon in the toolbox show about serialPort.. how ican i do the communication in window form...

    D 1 Reply Last reply
    0
    • Z zaftblitz

      i want to ask... can i do serial comunication by using normal window form application using VC++ 2008 because there has an icon in the toolbox show about serialPort.. how ican i do the communication in window form...

      D Offline
      D Offline
      DaveyM69
      wrote on last edited by
      #2

      zaftblitz wrote:

      can i do serial comunication by using normal window form application

      Yes Clickety[^]

      Dave
      BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
      Why are you using VB6? Do you hate yourself? (Christian Graus)

      Z 1 Reply Last reply
      0
      • D DaveyM69

        zaftblitz wrote:

        can i do serial comunication by using normal window form application

        Yes Clickety[^]

        Dave
        BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
        Why are you using VB6? Do you hate yourself? (Christian Graus)

        Z Offline
        Z Offline
        zaftblitz
        wrote on last edited by
        #3

        even if i dont use win32 still can do the serial commmunication??

        D 1 Reply Last reply
        0
        • Z zaftblitz

          even if i dont use win32 still can do the serial commmunication??

          D Offline
          D Offline
          DaveyM69
          wrote on last edited by
          #4

          Yes, the class I linked to is part of the .NET framework :thumbsup:

          Dave
          BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
          Why are you using VB6? Do you hate yourself? (Christian Graus)

          Z 1 Reply Last reply
          0
          • D DaveyM69

            Yes, the class I linked to is part of the .NET framework :thumbsup:

            Dave
            BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
            Why are you using VB6? Do you hate yourself? (Christian Graus)

            Z Offline
            Z Offline
            zaftblitz
            wrote on last edited by
            #5

            could you give me some example or link to do serial COM just using normal window form application. actually, what i want to o is to communnicate between PC and microcontroller.

            L 1 Reply Last reply
            0
            • Z zaftblitz

              could you give me some example or link to do serial COM just using normal window form application. actually, what i want to o is to communnicate between PC and microcontroller.

              L Offline
              L Offline
              Luc Pattyn
              wrote on last edited by
              #6

              there are many different kinds of applications and ways to communicate over RS232C or some other serial standard, and you did not provide a single detail. So I suggest you pick a few from this list[^] and read what you like there. Warning: if you haven't done it before, serial communication on Windows can be quite complex to get it right almost all of the time, it depends on how high the load is (needed throughput versus available throughput), and how well your messages are structured (assuming a message oriented protocol of some kind). :)

              Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]


              Happy New Year to all.
              We hope 2010 soon brings us automatic PRE tags!
              Until then, please insert them manually.


              Z 2 Replies Last reply
              0
              • L Luc Pattyn

                there are many different kinds of applications and ways to communicate over RS232C or some other serial standard, and you did not provide a single detail. So I suggest you pick a few from this list[^] and read what you like there. Warning: if you haven't done it before, serial communication on Windows can be quite complex to get it right almost all of the time, it depends on how high the load is (needed throughput versus available throughput), and how well your messages are structured (assuming a message oriented protocol of some kind). :)

                Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]


                Happy New Year to all.
                We hope 2010 soon brings us automatic PRE tags!
                Until then, please insert them manually.


                Z Offline
                Z Offline
                zaftblitz
                wrote on last edited by
                #7

                thanks :-D

                1 Reply Last reply
                0
                • L Luc Pattyn

                  there are many different kinds of applications and ways to communicate over RS232C or some other serial standard, and you did not provide a single detail. So I suggest you pick a few from this list[^] and read what you like there. Warning: if you haven't done it before, serial communication on Windows can be quite complex to get it right almost all of the time, it depends on how high the load is (needed throughput versus available throughput), and how well your messages are structured (assuming a message oriented protocol of some kind). :)

                  Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]


                  Happy New Year to all.
                  We hope 2010 soon brings us automatic PRE tags!
                  Until then, please insert them manually.


                  Z Offline
                  Z Offline
                  zaftblitz
                  wrote on last edited by
                  #8

                  from the link that you been given before, there more to c# not c++ what i want to do is in VC++ 2008. could you or anyone help me. PLEASE..................

                  L 1 Reply Last reply
                  0
                  • Z zaftblitz

                    from the link that you been given before, there more to c# not c++ what i want to do is in VC++ 2008. could you or anyone help me. PLEASE..................

                    L Offline
                    L Offline
                    Luc Pattyn
                    wrote on last edited by
                    #9

                    Obviously you don't need .NET to access Windows serial ports, however I haven't done that in the last 10 years, and I don't keep any example around. I suggest you use Google (or maybe the CodeProject search facilities) to find relevant articles. IIRC you would need CreateFile (with a special filename), ReadFile, WriteFile and the like. :)

                    Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]


                    Happy New Year to all.
                    We hope 2010 soon brings us automatic PRE tags!
                    Until then, please insert them manually.


                    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