About rs232 and delegate methods
-
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.
-
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.
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 )
-
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 )
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...