Date: Thu, 30 Dec 1999 09:40:44 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Fred Boyd cc: djgpp AT delorie DOT com Subject: Re: writing c++ code for serial communication (com1 or com2). In-Reply-To: <000901bf523b$82149bc0$ecbd99d1@default> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Wed, 29 Dec 1999, Fred Boyd wrote: > I want to write c++ code to recieve and transmitt data via com1 or com2 = > for a PC. > Can you supply me with example code or refer a book that will help me = > get started? You can begin by opening "COM1" or "COM2" as if it were a file, and then using functions that read and write files, like `read', `write', etc. If this is somehow not good enough, the DJGPP FAQ list mentions in section 22.3 several packages that can be used with DJGPP for establishing serial communications.