Serial

K

Kandy

Hi,
I need to write a program for use a serial port. I'm using the Borland C++
5.5 I tried to use the old method with the library bios.h but this library
does not come with the borlad. Propabilbly it can not be use with windows
XP.
I do not have a very strong experience in C++ someone can help me with a
little demo?

p.s.
I do not know how to use the object programmation. For this reason I need
something that will run in a dos shell.
 
J

JKop

Kandy posted:
Hi,
I need to write a program for use a serial port. I'm using the Borland
C++ 5.5 I tried to use the old method with the library bios.h but this
library does not come with the borlad. Propabilbly it can not be use
with windows XP.
I do not have a very strong experience in C++ someone can help me with
a little demo?

p.s.
I do not know how to use the object programmation. For this reason I
need something that will run in a dos shell.




-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers!
=-----


In Windows, use the "OpenFileEx" function to open a port. I
believe you specify the filename as something like:

\\*\\COM1

msdn.microsoft.com will tell you more.


-JKop
 
V

Victor Bazarov

Kandy said:
I need to write a program for use a serial port. I'm using the Borland C++
5.5 I tried to use the old method with the library bios.h but this library
does not come with the borlad. Propabilbly it can not be use with windows
XP.
I do not have a very strong experience in C++ someone can help me with a
little demo?

Yes, someone in a Borland newsgroup or in a Windows newsgroup can. C++ as
it is discussed here, in comp.lang.c++, does NOT have any mechanisms to
access and/or control hardware. You need to use OS-specific means.

BTW, 'bios.h' is not a library. It's a header.

V
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,176
Messages
2,570,947
Members
47,501
Latest member
Ledmyplace

Latest Threads

Top