Parallel Port with C/C++
Parallel Port with C/C++
(OP)
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
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





RE: Parallel Port with C/C++
<nbucska@pcperipherals.com>
RE: Parallel Port with C/C++
I use Linux too, but I realy need to do this in WINDOWS.
...
RE: Parallel Port with C/C++
RE: Parallel Port with C/C++
http://search.microsoft.com/search/results.aspx?View=msdn&st=a&qu=parallel+port&c=0&s=1
I develop in National Instuments LabView (G code) and LabWindows/CVI (C code) whose drivers permit direct port access in NT/2000/XP.
-Pete
RE: Parallel Port with C/C++
In windows use CreateFile with the file name as PRNx or LPTx.Then use readfile write file respectivly.