Dear all,
how to control parallel port using visual c++?when i send a data to parallel port, it will be displayed in computer screen, How to do that, Thank you.
Dear all,
how to control parallel port using visual c++?when i send a data to parallel port, it will be displayed in computer screen, How to do that, Thank you.
If you want to run this on an NT based machine, you'll need something like GiveIO to enable access to the inp and outp instructions.
A good resource.
More resources.
gg
Under NT and other 32 bit versions, you can get a handle to the ports with the CreateFile() API function. Look in the help - particulaly the section that deals with "communications resources". Once you have a handle you can use any of the handle based I/O routines to read and write the port. You do not need another library. inp and outp are 16 bit legacy stuff.
Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.
I assumed that he needed to control I/O on individual pins (from this other thread).
If he can connect the ADC to the parallel port in a way that normal reads on LPT1 return correct values, then that would be the ideal solution.
Since the x86 architecture uses port mapped I/O to access registers and devices (as opposed to memory mapped I/O), you wouldn't be able to write device drivers (that don't use DMA) without the IN and OUT instructions."inp and outp are 16 bit legacy stuff"
inp() and outp() are simply C function wrappers for the IN and OUT instructions. They are considered "old-school" because those instructions are priviliged under NT/2000/XP (unless you use something like GiveIO or UserPort to give your process permissions to use those instructions).
gg
Thank you,
How to use _inp(), it takes one parameter, while _outp() takes two parameters,are they?
i think it is just few lines(program) if display the signal in computer through parallel port, isn't it?