Mail Archives: djgpp/1999/03/05/22:55:33
| Message-ID: | <36DFEABD.1074@cbhc.ns.ca>
|
| From: | David Nugent <davidn AT cbhc DOT ns DOT ca>
|
| X-Mailer: | Mozilla 3.01 (WinNT; I)
|
| MIME-Version: | 1.0
|
| Newsgroups: | comp.os.msdos.djgpp
|
| Subject: | Help, DJGPP or ALLEGRO are doing something to printer output?
|
| Lines: | 23
|
| Date: | Fri, 05 Mar 1999 14:31:25 +0000
|
| NNTP-Posting-Host: | 142.176.79.34
|
| X-Trace: | sapphire.mtt.net 920665916 142.176.79.34 (Fri, 05 Mar 1999 16:31:56 ADT)
|
| NNTP-Posting-Date: | Fri, 05 Mar 1999 16:31:56 ADT
|
| Organization: | Business Internet
|
| To: | djgpp AT delorie DOT com
|
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
| Reply-To: | djgpp AT delorie DOT com
|
Ok guru's...... Figure this one..
Has anyone had any experiences with printing from within
a program? I wrote a program that creates a file and
sends it to a printer. I am using DJGPP and the ALLEGRO
library. When it goes to the printer, the printer's data
light flashes for a few seconds, and then the error light
comes on. I originally tried sending the file to stdprn,
and thought this is where the problem was. So then I
wrote the output to a file and then did a
"COPY /B FILENAME LPT1:" This worked. Now if I take the
same file, and from within my program issue...
system ("copy /B filename LPT1:");
It starts to go to the printer, but then the error
light comes on. Now if I exit my program and use
the old "COPY /B FILENAME LPT1:" from the command
prompt the same file works..
This has me really confused... What is worse is that
if I take a file designed for a different printer, and
try this, it seems to work ok.. Anyone have any ideas?
- Raw text -