outportb() / inportb() and Win32

P

Pegboy

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.
 
M

Mike Wahler

Pegboy said:
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
 
K

Kevin Goodsell

Pegboy said:
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
 
M

Mark McIntyre

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.
 
Joined
Jun 28, 2010
Messages
1
Reaction score
0
re

I was having similar problems, but they got solved when i used the old version of Turbo C Borland version 3
 

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
473,755
Messages
2,569,537
Members
45,022
Latest member
MaybelleMa

Latest Threads

Top