In the simple program below, what do I have to do to send the output
to the default printer rather than a message box?
Printed page output like so:Code:#include <windows.h> int WINAPI WinMain(HINSTANCE hinst, HINSTANCE hinstPrev, LPSTR lpszCmdLine, int nCmdShow) { int i; for (int i=1; i < 6; i++) { MessageBox(NULL, i, NULL, MB_ICONWARNING); } return 0; }
1
2
3
4
5
Seems trivial I know, and yes I've searched, but I cannot find what I am looking for.




Reply With Quote