Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

About the parallel port control.

Posted on 2002-03-16
8
247 Views
Last Modified: 2013-11-15
I am writting a programme for my temperature circuit. How can I force a control bit(C0 pin1) that on the parallel port as an input ? because i want to receive a data from a chip . How do i know i am receiving data from the chip, is that any way to know that ?

Thanx

0
Comment
Question by:ComputerG
  • 3
  • 2
  • 2
  • +1
8 Comments
 

Author Comment

by:ComputerG
ID: 6873470
Please help Please help
0
 
LVL 49

Accepted Solution

by:
DanRollins earned 50 total points
ID: 6873638
If you are programming in Windows (even in a Command prompt), you can't just read or set the port.  You will need to use some higher-level functions.  The pin values equate to certain status codes available in a structure called PRINTER_INFO_2.  See

http://search.microsoft.com/gomsuri.asp?n=1&c=rp_Results&target=http://support.microsoft.com/support/kb/articles/Q160/1/29.asp

for some example code.

-- Dan
0
 

Expert Comment

by:Nizvoo
ID: 6873641
thx
0
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 
LVL 49

Expert Comment

by:DanRollins
ID: 6873721
If that helps you, please be sure to come back here and accept my comment as an answer :-)

-- Dan
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 6924212
hi ComputerG,
Do you have any additional questions?  Do any comments need clarification?

-- Dan
0
 
LVL 11

Expert Comment

by:griessh
ID: 6955391
Dear ComputerG

I think you forgot this question. I will ask Community Support to close it unless you finalize it within 7 days. You can always request to keep this question open. But remember, experts can only help you if you provide feedback to their questions.
Unless there is objection or further activity,  I will suggest to accept

     "DanRollins"

comment(s) as an answer.

If you think your question was not answered at all, you can post a request in Community support (please include this link) to refund your points. The link to the Community Support area is: http://www.experts-exchange.com/commspt/

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
======
Werner
0
 

Author Comment

by:ComputerG
ID: 6958046
not really what i want
0
 
LVL 11

Expert Comment

by:griessh
ID: 6958083
ComputerG

You never stated what you REALLY want. In my suggestion I told you already that th eexperts need feedback to their comments or else we have to suspect the comment was enough information for you. Dan offered you twice to get back to him about any help and I am sure he is still willing to help out. BUT: you have to ask him! He just doesn't know ...

I would suggest to explain any further problems here.

======
Werner
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Developer portfolios can be a bit of an enigma—how do you present yourself to employers without burying them in lines of code?  A modern portfolio is more than just work samples, it’s also a statement of how you work.
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question