Dear Friends

please help me., How to write data to parallel port and how to read data from Parallel port,

If you have any API function please share with me.

Regards
M.Sakthivel

Recommended Answers

All 2 Replies

Do you want to buy a thirdparty component or re-invent the wheel?

I have found a ready to use parallel port component here:
http://www.zealsoft.com/ntport/download.html

Install the exe and you can then add the component to your project IDE. Its an easy to use component.

To read from the port:

NTPORT1.address = 888 'address for data lines
NTPORT1.bitsize = 8 'One byte
myVal = NTPORT1.value 'Read from the lines, input in decimal

And to output data:

NTPORT1.address = 888 'address for data lines
NTPORT1.bitsize = 8 'One byte
NTPORT1.value = 1 'activate D0 line..output in decimal

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.