views:

38

answers:

1

Is there any way a C++ commandline program on Windows can produce a graphical GUI print dialog for printing to a printer, just like usual GUI programs? I've combed through this webpage and it seems there are only commands that print files in the background to a pre-determined printer.

+2  A: 

Command-line applications in Windows still have full access to everything that GUI-mode applications do (the only difference is they start out with a console, whereas GUI-mode applications do not).

So you can still call all of the regular printing functions from GDI.

Dean Harding
hmm... I was thinking of specifically system() calls... are there any that might serve the same purpose?
wrongusername
That's not the normal way of printing from an application.
MSalters