473,788 Members | 2,810 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 16205
"Pegboy" <pe****@neb.rr. com> wrote in message
news:xq******** ************@tw ister.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.program mer.win32
for Win32 issues.

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

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

"Mike Wahler" <mk******@mkwah ler.net> wrote in message
news:Fz******** *********@newsr ead2.news.pas.e arthlink.net...
"Pegboy" <pe****@neb.rr. com> wrote in message
news:xq******** ************@tw ister.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.program mer.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.c om/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
8467
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 can i attain that through perl? thanks
5
2217
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 be written in C and C++ language. Please give me an advice where I should post to discuss this topic to the correct newsgroups. Also, where can I obtain the best textbook to learn and understand how Win32 API functions work in C / C++ language. ...
8
4772
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 which a win32 is not. You may correct me if I'm wrong on this point. //Tony
2
2973
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 trying to write a program using parallel port. I wrote this program to change the port number to one or zero. I am not able to change the port number from one to zero. It takes it sever run time to change from one to zero. WHY? ANY SUGGESTIONS?
2
18654
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 , 0x00); outportb(PORT1 + 3 , 0x03); outportb(PORT1 + 2 , 0xC7); outportb(PORT1 + 4 , 0x0B);
0
2442
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 some action. The java call looks like this: Win32::SetChildShowWindow(0); Win32::Process::Create(
3
4105
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 = EBDTools::os_path("${nh_home}/web/aview/modules/svcrsp-ng/saSync.pl"); $success = Win32::Spawn($^X, "${^X} $cmdline ${optfile}", $pid); if (! $success) { my $lasterr = Win32::GetLastError(); return_configerror("Failed to create commit / sync process...
3
2847
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
10055
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 PPM. the steps i took are: 1. saved Win32-GuiTest-1.50.5.zip from the search.cpan.org website 2. unzipped in the location c:/Perl/Win32-GuiTest 3. opened the PPM window and went to Edit-Preferences and clicked the repositories tab 4. i put...
0
9498
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10364
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10172
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10110
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8993
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7517
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5536
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4069
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3670
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.