Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations GregLocock on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Parallel Port with C/C++

Status
Not open for further replies.

ton7

Electrical
Sep 3, 2003
2
How can I read/write bits in the parallel port usin C/C++ in WinXP? Because direct hardware access in 32-bit Windows is generally not allowed. While it can be done in the Win9x OS by using inline assembly, this is generally discouraged as this technique is not supported under WinNT.

And the following program features and language elements are either no longer supported or no longer used in C++Builder 5.5:

inport
inportb
outport
outportb
 
Replies continue below

Recommended for you

This is one reason I don't do WINDOWS.

<nbucska@pcperipherals.com>
 
I agree with you.
I use Linux too, but I realy need to do this in WINDOWS.
...
 
Perhaps this thread might help thread233-22451
 
Linux blah blah blah...

In windows use CreateFile with the file name as PRNx or LPTx.Then use readfile write file respectivly.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor