Hello all! I have a question about c++ ... I want to read the parallel port, but for this i must use pc.h, 'cause it conteins inportb() function ... Can somebody help me to find this file or tell me other way to read the port?
Printable View
Hello all! I have a question about c++ ... I want to read the parallel port, but for this i must use pc.h, 'cause it conteins inportb() function ... Can somebody help me to find this file or tell me other way to read the port?
Did you trying searching google for it?
Yeah! I tried a couple of times, but ... nothing :(
That sounds like it's highly operating system and/or compiler specific.Quote:
Originally posted here by Barov4e
Hello all! I have a question about c++ ... I want to read the parallel port, but for this i must use pc.h, 'cause it conteins inportb() function ... Can somebody help me to find this file or tell me other way to read the port?
I suspect that is from some DOS compiler.
In protected-mode OSs you can't read the parallel port directly in this manner. You have to either use the proper method of accessing the parallel port driver (which may not do what you want), or gain direct I/O access.
Slarty
And how can i direct access the port ... I tried with asm, but i shows me error"privileged operation"
Try this link it may help you.
http://www.control.com/1026180074/index_html
pls specify the OS u are programming in???
Quote:
Originally posted here by Barov4e
Hello all! I have a question about c++ ... I want to read the parallel port, but for this i must use pc.h, 'cause it conteins inportb() function ... Can somebody help me to find this file or tell me other way to read the port?
Use this link. It covers the topic of reading/writing to the parport. It also contains a custom library which contains specific exportable functions for Parallel I/O. http://www.logix4u.net/inpout32.htm
10x a lot men :))) Drink a beer from me :P