Printing to PRN with Borland c++
Posted on 1998-05-31
I am using Borland c++ for Windows v3.1 on Win95 and am trying to print to the printer attached to parallel port 1. The "standard" stdprn file doesn't work, so I tried explicitly opening PRN:
p = fopen("PRN", "w");
fprintf(p, "this is a test\n");
but the text is written to the screen!
Does anybody know what I'm doing wrong?