C++/Physica

Advertisement


Question
Sir,
Let me know how can I perform PC parallel port interfacing experiments in C++ in windows XP environment. Please give in detail.
I have such an experiments tested and used in windows 98. Can I convert the same for XP?

Answer
depends on the functions that you used in the code for windows 98.
it may be possible to use the same code for XP, but not for vista.

using a hardware access library may be the easier option.

eg. WinRing0 http://openlibsys.org/manual/
http://sourceforge.net/projects/winring0/

you code would also port easily across platforms.

these are the steps that you need to perform:

1. download WinRing0
2. unpack the zip file.
3. read the extracted file manual.chm - section "How to Use"
4. in manual.chm - section "Core API" read about the functions of interest to you. eg. ReadIoPortByte, WriteIoPortByte
5. put WinRing0.dll, WinRing0x64.dll, WinRing0.sys, WinRing0x64.sys, and WinRing0.vxd into the directory where your application's executable file resides
5. add the import library WinRing0.lib (or WinRing0x64.lib for 64 bit) to your project

C++

All Answers


Answers by Expert:


Ask Experts

Volunteer


vijayan

Expertise

my primary areas of interest are generic and template metaprogramming, STL, algorithms, design patterns and c++11. i would not answer questions about gui and web programming.

Experience

about 15 years or so

Education/Credentials
post graduate engineer

©2016 About.com. All rights reserved.