Joseph Suprenant said:
I am missing the fact? Please point the fact out to me, so i won't miss it
next time.
Is English a second language to you? Am I really so unclear in
the first sentence of my reply?
You are missing the fact _that_ standard C++ has no means to do
what you want. The fact is: standard C++ has no means to access
hardware. You are apparently missing that. How else would you
like me to "point the fact out" to you?
Well, let's try. Fact: standard C++ has no means to access
hardware (parallel port included). "No means" designates the
situation that there are _no_ mechanisms in the _language_ which
would result in a program that performs the actions required.
You have used non-standard elements, provided to you by some
[unrelated] platform (MS-DOS, maybe?). You're now on a different
platform, apparently (Linux). You _got_ to use different, yet
still platform-specific means. All that because the standard
C++ _language_ does not have such means, they are provided by
the platform. And that's what you've been missing.
Platform-specific solutions are discussed in their respective
newsgroups, not here. That you may not have been missing, or,
perhaps you have, that's unclear to me.
And, please don't top-post.
If you need more detailed explanation about the common rules of
this newsgroup, please turn to the Welcome message posted here
periodically by Shiva (also at
www.slack.net/~shiva/welcome.txt)
and the FAQ Lite (
www.parashift.com/c++-faq-lite/)
Victor Bazarov said:
Joseph Suprenant said:
I am looking to read a byte or write a byte on the parallel port in linux.
I am using red hat 7.3. I tired using this but i couldnt get anywere.
{ [non-standard code removed]
}
what am i missing, what else can i do?
You're missing the fact that standard C++ (the subject of this
newsgroup) has no means to "read a byte or write a byte on the
parallel port". You need to use system-specific solutions,
which are discussed in comp.os.linux.development.* family of
newsgroups.