porttalk22 - TechRepublic
Question
July 20, 2007 at 11:47 PM
saurabh_dixit1234

porttalk22

by saurabh_dixit1234 . Updated 18 years, 10 months ago

Hello all

I am Saurabh Dixit. I am using porttalk22 for reading data from parallel port LPT 0x378 (data lines). I am able to read data on 0x378 in Xp using your porttalk.sys driver. Its working good , but problem is that it is not able to clear data buffer. So the last data only showing for next data we have to give reprint.

I am using PC to PC communication using porttalk driver in C++. One PC 1 uses Xp OS and another PC 2 uses command prompt mode only.I am using PC 1 with XP OS for reading data from parallel port using porttalk.sys driver. From another PC 2 i am sending “abcd” and as i gives print command the PC 1 with Xp OS (porttalk.sys) reads only first char “a” and then just repeat same char. so that time its not giving any ack to another PC 2 and so printing is not complete. So please tell me how can i read full string from that porttalk.sys driver. I think we have to clear the data buffer which is used by driver. So i am not able to do that please help me. I am in real need of that.
Hope you will reply me soon.

Another thing is that i tried you given example “Ioexample.c” but its required two header files named as “windows.h” and “winioctl.h”. I found that from internet and include that header file in programme but again its asking for next 26 header files. Again i got all 26 header file from the internet and download all and include in programme. But still error shows in the “pshpack1.H ” header file. error is like:
Fatal Error: #error: “1 as alignment isn’t supported by the compiler”

so i am not able to use your IoExample.C for testing. So please give me more information and solution for all these problems.

Thank You

This discussion is locked

All Comments