While working on some small side project I need my app to use the printer. Like when the user presses a button a certain message or image will be printed on a sheet of paper.
So my question is whether somebody of you ever did sth similar, and what will be the easiest way for a non-windows progrmmer to do the job? Should I use some SDK, or I can use some windows functions?
The output doesn`t need to be edited, previewed etc. Like just press a button and a few lines will be printed directly. App is in C++ and Irrlicht, platform should support WinXP at least.
I think it`ll need to be sth like this:
1) On app startup- set the port, Init the printer, get some pointer maybe?
2) call myDefaultPrinter->printMyMessage("Hello, ugly printer world! This is me on a sheet of paper!");
Any ideas?!