Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

.Net, XP and parallel port

24 views
Skip to first unread message

Philippe Mercier

unread,
Jun 26, 2002, 6:02:09 PM6/26/02
to
Hello everybody,

Does anyone know how I can directly send characters to the parallel port of
my computer, running under Windows XP ?
The programming language is VB5, VB6 or VB.Net.

It seems that it is not so easy because my parallel Omega Zip drive or my
parallel cable shipped with PCAnywhere don't work under XP...
Any idea ?

Thank you in advance.

Philippe

strchild

unread,
Jun 27, 2002, 7:36:22 AM6/27/02
to
You know, I am wondering this very same thing. I am trying to do my own
print routine, as I can't find anything in VB.NET to handle what I need. It
would make my life so simple if I could send characters directly to the
parallel port, instead of to a file first.

"Philippe Mercier" <ph.me...@skynet.be> wrote in message
news:3d1a39de$0$6972$ba62...@news.skynet.be...

Lee Christie

unread,
Jun 27, 2002, 11:19:56 AM6/27/02
to
as do i wonder... I am working on software to send files via the parralel
port, in XP and .NET

"strchild" <strc...@hotmail.com> wrote in message
news:WMCS8.334964$cQ3.20264@sccrnsc01...

Brad Rogers

unread,
Jun 27, 2002, 8:11:44 PM6/27/02
to
now this seems so easy, you simply send bytes of data to the IO port range
for the parallel port that you have, I think its around 3F8 or 378 and there
are 8? registers there. the EPP have more registers to set, but still
gaining access to that area is simple.

as you may know some of the bytes you write to disappear, you can write but
not read back, so software cant do a write/read/compare, its a write and
hope.

get the download at www.sstnet.com which should work for all 32 bit windows
or $4 windows which even includes a printer test.

I havent used it to see the source code, but they give a control you can
call to read/write to the port you specify. its useful to have a parallel
port breakout box, then attempt to write and set/clear the bit because its
really easy to have things inverted.


"Philippe Mercier" <ph.me...@skynet.be> wrote in message
news:3d1a39de$0$6972$ba62...@news.skynet.be...

Dick Grier

unread,
Jun 28, 2002, 11:42:45 AM6/28/02
to
Hi,

You can download IOocx.ocx from my homepage. It works fine under .NET. I
also have written an ActiveX control specifically for raw IO with printers.
However, the CreateFile API and the FileStreams class can be used, too.

--
Richard Grier (Microsoft Visual Basic MVP)

See www.hardandsoftware.net for contact information.

Author of Visual Basic Programmer's Guide to Serial Communications, 3rd
Edition ISBN 1-890422-27-4 (391 pages) published February 2002.

Dick Grier

unread,
Jun 28, 2002, 11:44:40 AM6/28/02
to
Hi,

Jan Axelson's book, Parallel Port Complete has (old style) VB code that
implements file tranfers via the parallel port. This could be modified,
easily, to VB.NET, using the IOocx.ocx from my homepage. You can get
information on her book using the Books link on my homepage.

Philippe Mercier

unread,
Jul 3, 2002, 3:07:21 AM7/3/02
to
Thank you for all answers.
Philippe


0 new messages