473,403 Members | 2,359 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

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 16132
"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Scaramouche | last post by:
is there an equivalent to unixs' ps command in perl? i was writing some win32 scripts and i needed a listing of specific processes. i could perhaps grep through a list of running processes but how...
5
by: Bryan Parkoff | last post by:
Please provide me the information when it is not in the correct newsgroups. I have been using C and C++ language for a long time when it is time for me to learn Win32 API functions that they can...
8
by: Tony Johansson | last post by:
Hello! I just wonder what the difference is between a native win32-app and MFC. What I know is that you can use Win32 API in both cases. I think an MFC application is connected with a GUI...
2
by: rick | last post by:
Greetings to all, i am not sure this is the write group to post my question to. If it is not i apologize. In the mean time if you have the answer to my question please help. THANKS!! i am...
2
by: shashi59 | last post by:
Anyone plz explain outportb function.And also explain the code below........ #define PORT1 0x3F8 outportb(PORT1 + 1 , 0); outportb(PORT1 + 3 , 0x80); outportb(PORT1 + 1 ,...
0
by: jbenezech | last post by:
Hi all , I have a perl/java app running under Win32. The application consists of a perl service (Win32::Daemon) and of java classes. The perl service calls every xx hours java classes to perform...
3
by: somuchh8 | last post by:
Hi, I'm having a lot of trouble with the Win32::Spawn module in perl. Here is my situation, I have a Win32::Spawn call which looks like this: my $success = undef; my $cmdline =...
3
by: maheshchintu | last post by:
Can i use outportb() in windowsXP...... then how should i interface PC's parallel port with outside circuits for my project,.... is there any exact replacement for outportb().
6
by: Perl Beginner | last post by:
Good morning all, I had to reinstall Perl (ActivePerl 5.10.0 Build 1004) on my computer (Windows XP), the install went fine. however, I'm having issues loading Win32-GuiTest using the repository in...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.