Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
Give a google.com search with the term 'CSerialPort', you will get at least 10 different classes with full source code and demo applications from codeproject, codeguru, etc.
You can simply use the mscomm32.ocx component.
Go to -> Project -> Add to Project -> Components and Controls -> select folder 'Registered ActiveX Controls' -> select 'Microsoft Communications Control, version 6.0' (or any other version); next it will add in your project a Class (with default name 'CMSCOMM') with all you need for RS232 communications.
Notice: I have experienced many problems using NULL characters, so try to ensure that you don't use it.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.