Thread: C++
-
October 1st, 2003, 10:06 PM
#1
Senior Member
C++
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?
-
October 1st, 2003, 11:21 PM
#2
Did you trying searching google for it?
[gloworange]And then it happened... a door opened to a world... rushing through the phone line like heroin through an addict\'s veins, an electronic pulse is sent out, a refuge from the day-to-day incompetencies is sought... a board is found. \"This is it... this is where I belong...\" I know everyone here... even if I\'ve never met them, never talked to them, may never hear from them again... I know you all...[/gloworange]
-
October 2nd, 2003, 01:13 PM
#3
Senior Member
YEs
Yeah! I tried a couple of times, but ... nothing
-
October 2nd, 2003, 01:25 PM
#4
Re: C++
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?
That sounds like it's highly operating system and/or compiler specific.
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
-
October 2nd, 2003, 01:45 PM
#5
Senior Member
RE
And how can i direct access the port ... I tried with asm, but i shows me error"privileged operation"
-
October 2nd, 2003, 01:53 PM
#6
Mad Beaver
-
October 2nd, 2003, 03:07 PM
#7
pls specify the OS u are programming in???
guru@linux:~> who I grep -i blonde I talk; cd ~; wine; talk; touch; unzip; touch; strip; gasp; finger; mount; fsck; more; yes; gasp; umount; make clean; sleep;
-
October 2nd, 2003, 07:45 PM
#8
Re: C++
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
-
October 2nd, 2003, 08:57 PM
#9
Senior Member
RE
10x a lot men )) Drink a beer from me :P
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|