 |
C++Talk.NET C++ language newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Kandy Guest
|
Posted: Fri Sep 24, 2004 12:13 pm Post subject: Serial |
|
|
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! =-----
|
|
| Back to top |
|
 |
JKop Guest
|
Posted: Fri Sep 24, 2004 12:15 pm Post subject: Re: Serial |
|
|
Kandy posted:
| Quote: | 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
|
|
| Back to top |
|
 |
Victor Bazarov Guest
|
Posted: Fri Sep 24, 2004 1:36 pm Post subject: Re: Serial |
|
|
Kandy wrote:
| Quote: | 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
|
|
| Back to top |
|
 |
Gerhard Wesp Guest
|
Posted: Mon Sep 27, 2004 8:37 am Post subject: Re: Serial |
|
|
Kandy <nasoni (AT) gmail (DOT) com> wrote:
| Quote: | I do not have a very strong experience in C++ someone can help me with a
little demo?
|
I have a serial port platform-independent interface (so we're at least
somewhat on-topic and Microsoft-Windows specific implementation in
cpp-lib. See http://www.cosy.sbg.ac.at/~gwesp/ .
Cheers
-Gerhard
--
Gerhard Wesp o o Tel.: +41 (0) 43 5347636
Bachtobelstrasse 56 | http://www.cosy.sbg.ac.at/~gwesp/
CH-8045 Zuerich _/ See homepage for email address!
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|