Question: A number of years ago I wrote a business application in the Microsoft BASIC Professional Development Systems that runs compiled in a DOS environment. It relies on sending control code sequences to the printer for proper page formatting. Only a handful of codes are used. The application is still in service, but now the user's computers all run Windows (probably various versions). The legacy BASIC program is run in a DOS window, but nothing comes out of the printer any more. How can this be remedied? Thank you.
Answer: There are three differences between DOS and Windows.
For your program to be able to access the Printer it will need to be amended to call the Windows API to request for Windows to pass the information to the printer. Windows will then print what is requested at a time that doesn't conflict with it printing something else.
This article written by Stephen Chapman, Felgall Pty Ltd.