Win32 |
Author |
Message |
delovski
Joined: 14 Jun 2006 Posts: 3524 Location: Zagreb
|
Posted: Tue Nov 07, 2006 10:16 am Post subject: Console |
|
|
Attach the console, but only if run from console
"The AttachConsole API should be suitable in this case. And if you are using
Visual C, a GUI program can access it's command-line using the __argc and
__argv global variables. " |
|
Back to top |
|
 |
delovski
Joined: 14 Jun 2006 Posts: 3524 Location: Zagreb
|
|
Back to top |
|
 |
XNote Kapetan
Joined: 16 Jun 2006 Posts: 537
|
Posted: Sun Feb 04, 2007 12:30 am Post subject: |
|
|
msdn: Sending Data Directly to a Printer
"It is sometimes necessary to bypass the driver and send printer-specific
data directly to a printer. The following code shows how this can be done for
both local and networked printers. This method can be used to replace the
PASSTHROUGH escape and SpoolFile methods." |
|
Back to top |
|
 |
|