DPRG List  

[DPRG] Changing Printer Ports in C++

Subject: [DPRG] Changing Printer Ports in C++
From: Rodent daweasel at swbell.net
Date: Mon Sep 1 03:41:01 CDT 2003

I dug through the CD and found a code example in plain C buried in strange
place. The method is very crude compared to the higher level commands, but
it does work. I'm gonna pick out the important stuff and see if I can get it
to work with my code.

----- Original Message -----

> I was just using Visual C++ as an example. The inp and outp is still the
> "low-level" way to talk to either LPT port.
> If XDOS is compatible with DOS, then you could try this:
> FILE *lpt2 = fopen( "LPT2:", "w" );
> This should work under DOS, which means that it may work under XDOS
> (which I know nothing about).
> Otherwise, you're going to have to dig into how you address various
> devices in your environment.
> The problem you've described is NOT a C or C++ problem. It's an
> environmental problem having to do with your compiler and/or operating
> system.

More information about the DPRG mailing list