Dec 2, 2001 #1 keithvb Programmer Dec 2, 2001 2 US Using DJGPP in DOS shell under Win98. The application is menu driven. When I send lines to a printer Code: fputs( string, printer); nothing happens until I exit from my app. Then printing occurs perfectly. Any idea what is holding up my printing?
Using DJGPP in DOS shell under Win98. The application is menu driven. When I send lines to a printer Code: fputs( string, printer); nothing happens until I exit from my app. Then printing occurs perfectly. Any idea what is holding up my printing?
Dec 3, 2001 #2 brudnakm Programmer Jun 26, 2001 79 US keith, You need to flush the output buffer. Use fflush(printer) Brudnakm Upvote 0 Downvote
Dec 4, 2001 Thread starter #3 keithvb Programmer Dec 2, 2001 2 US Brudnakm, Thanks for the response. I've tried Code: fflush(printer) and it makes no difference. I've done more digging/thinking abt the issue: This is network printing. If I wait abt 3 minutes the printing occurs even if I don't exit the app. So: I'm going to try creating the print routines as separate apps that I can call from my main app. Think it'll work? Keith Upvote 0 Downvote
Brudnakm, Thanks for the response. I've tried Code: fflush(printer) and it makes no difference. I've done more digging/thinking abt the issue: This is network printing. If I wait abt 3 minutes the printing occurs even if I don't exit the app. So: I'm going to try creating the print routines as separate apps that I can call from my main app. Think it'll work? Keith