hey thanks guys for all the help..
when i use visual basic, the para port works fine, but does not work in c or c++.. i guess there is a seperate code in c/c++ required to get access to the parallel port.. someone has any idea abt it?
thnx..
hey thanks guys for all the help..
when i use visual basic, the para port works fine, but does not work in c or c++.. i guess there is a seperate code in c/c++ required to get access to the parallel port.. someone has any idea abt it?
thnx..
Back when i was writing a serial interface app for reading the serial port,
i used DOS and read the serial port just fine. I believe this classifies it
as a "console app" rather than a "windows app". The code was in
assembler.
When i went to use it as a windows app, it would not read the port but
would give an error as to a program trying to directly access to the port
(or something like that). I was forced to switch to using the Windows
API to access the port from Windows. It worked, but i preferred using
the DOS assembler technique. It's too bad Windows XP screwed that
all up.
The difference then was in the sub system used, DOS or Windows.
Colin, direct port access works in turbo C, Borland C++ etc but only for dos and Windows up to and including Win98. For XP they disabled direct port access and you need the driver.
Colin, direct port access works in turbo C, Borland C++ etc but only for dos and Windows up to and including Win98. For XP they disabled direct port access and you need the driver.