Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Parallel port access

Status
Not open for further replies.

markwalker84

Programmer
Jul 18, 2006
6
GB
Hi there.

Firstly:

I am using an XP machine running SP2.
I am using Microsoft Visual C++ 2005 Express Edition.
I am new to VC++ (have a base in C)
I click New -> Project -> CLR -> Windows Form Application
I use the template style files that VC++ gives me which include;

Form1.h
resource.h
stdafx.h
app.ico
app.rc
AssemblyInfo.cpp
"Project_Name".cpp
stdafx.cpp
ReadMe.txt

So - now that everyone knows where i am coming from hopefully i can ask a question more effectively :)

Basically... how do i gain access to my parallel port for both read and write of the 8 bit data bus?

I have already got a copy of inout32.dll in my system folder but i cant get any of the commands to call without crashing the program.

Any ideas?

Thanks

Mark
 
Hi there.

I'm sure that this is not such a difficult topic that no one knows the answer. If i have asked in the wrong foum, or have not followed some other requirement then please let me know.

If the answer is VERY obvious then could someone at least point me in the right direction?

Thanks

Mark
 
May I paraphrase the question?

I have difficulties with my car. It has wheels, a carriage and an engine. Can you help me now?

Common parallel port access method on Windows: use CreateFile API...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top