469,270 Members | 1,011 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,270 developers. It's quick & easy.

outportb() / inportb() and Win32

I am updating a utility to capture serial port data that was originally
developed as a DOS app using the outportb() and inportb() routines. I am
trying to re-work it as a Win32 app using Borland C++ 5.02, but am finding
that outportb() and inportb() are not available for a Win32 target. There
is no fancy flowcontrol or packet protocols being used, just simply
capturing incoming serial data.

What is available to me for such simple serial port development in a C
application for Win32?

Thank you for your help.

--------------------
Brian
Nov 13 '05 #1
4 15533
"Pegboy" <pe****@neb.rr.com> wrote in message
news:xq********************@twister.rdc-kc.rr.com...
I am updating a utility to capture serial port data that was originally
developed as a DOS app using the outportb() and inportb() routines. I am
trying to re-work it as a Win32 app using Borland C++ 5.02, but am finding
that outportb() and inportb() are not available for a Win32 target. There
is no fancy flowcontrol or packet protocols being used, just simply
capturing incoming serial data.
Windows does not allow direct hardware access. You need to
use the API.

What is available to me for such simple serial port development in a C
application for Win32?

Thank you for your help.


You should know by now that your query is completely
off topic for comp.lang.c.

Visit newsgroup comp.os.ms-windows.programmer.win32
for Win32 issues.

-Mike
Nov 13 '05 #2
Thanks, I will check those groups you recommended.

----------------
Brian

"Mike Wahler" <mk******@mkwahler.net> wrote in message
news:Fz*****************@newsread2.news.pas.earthl ink.net...
"Pegboy" <pe****@neb.rr.com> wrote in message
news:xq********************@twister.rdc-kc.rr.com...
I am updating a utility to capture serial port data that was originally
developed as a DOS app using the outportb() and inportb() routines. I am trying to re-work it as a Win32 app using Borland C++ 5.02, but am finding that outportb() and inportb() are not available for a Win32 target. There is no fancy flowcontrol or packet protocols being used, just simply
capturing incoming serial data.


Windows does not allow direct hardware access. You need to
use the API.

What is available to me for such simple serial port development in a C
application for Win32?

Thank you for your help.


You should know by now that your query is completely
off topic for comp.lang.c.

Visit newsgroup comp.os.ms-windows.programmer.win32
for Win32 issues.

-Mike

Nov 13 '05 #3
Pegboy wrote:
Thanks, I will check those groups you recommended.


You should also know by now that top-posting is not appreciated on
Usenet. Please stop it.

-Kevin
--
My email address is valid, but changes periodically.
To contact me please use the address from a recent posting.

Nov 13 '05 #4
On Wed, 3 Dec 2003 18:44:31 -0600, in comp.lang.c , "Pegboy"
<pe****@neb.rr.com> wrote:
I am updating a utility to capture serial port data that was originally
developed as a DOS app using the outportb() and inportb() routines.
inportb() etc are not C functions, they're DOS specific stuff. As such
they're offtopic here.
trying to re-work it as a Win32 app using Borland C++ 5.02, but am finding
that outportb() and inportb() are not available for a Win32 target.
Because they're DOS functions...
What is available to me for such simple serial port development in a C
application for Win32?


A windows programming group could probably tell you, eg in the
microsoft.win32.programmer.... heirarchy.

Be prepared for it to be somewhat harder tho, as user-mode apps do not
have hardware access under windows.
--
Mark McIntyre
CLC FAQ <http://www.eskimo.com/~scs/C-faq/top.html>
CLC readme: <http://www.angelfire.com/ms3/bchambless0/welcome_to_clc.html>
----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
Nov 13 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Scaramouche | last post: by
5 posts views Thread by Bryan Parkoff | last post: by
8 posts views Thread by Tony Johansson | last post: by
2 posts views Thread by rick | last post: by
3 posts views Thread by maheshchintu | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.