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. C#
  4. About rs232 and delegate methods

About rs232 and delegate methods

Scheduled Pinned Locked Moved C#
help
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.
  • P Offline
    P Offline
    pocho2101
    wrote on last edited by
    #1

    Hello every body, I want to do a library wich has to conect throw rs232 port, but I need to made it conection with code, because as I said, is a library, and i can´t use any component.I know is posible using delegate methods and events, but I have no idea of how i can do it. If somebody can help me with some code I will be very gratefull.

    C 1 Reply Last reply
    0
    • P pocho2101

      Hello every body, I want to do a library wich has to conect throw rs232 port, but I need to made it conection with code, because as I said, is a library, and i can´t use any component.I know is posible using delegate methods and events, but I have no idea of how i can do it. If somebody can help me with some code I will be very gratefull.

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Delegate methods really have little to do with RS232, do you know what delegates are ? I googled C# RS232 and got tons of information, including articles here on CP. VS2005 has a serial port class as far as I know. Perhaps it uses delegates to hook up to events on the port.

      Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

      M 1 Reply Last reply
      0
      • C Christian Graus

        Delegate methods really have little to do with RS232, do you know what delegates are ? I googled C# RS232 and got tons of information, including articles here on CP. VS2005 has a serial port class as far as I know. Perhaps it uses delegates to hook up to events on the port.

        Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

        M Offline
        M Offline
        Michael9000
        wrote on last edited by
        #3

        Christian Graus wrote:

        VS2005 has a serial port class as far as I know.

        Yes it's there. just drag-and-drop serialPort from toolbox to a form and start playing with it...

        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