|
From: Jason H. <jas...@bt...> - 2002-04-11 22:53:20
|
As a quick guess, you will probably have to query the system for the printer's name. It may be named
differently to what you have? There is probably a query that will give you some way of identifying
the default printer also. Check the Win32 API documentation.
Jason.
----- Original Message -----
From: "Daniel Glenfield" <sp...@ho...>
To: <dev...@li...>
Sent: Thursday, April 11, 2002 4:58 PM
Subject: [Dev-C++] OpenPrinter()
HELP please!!!
I am using OpenPrinter() in Windows. The first parameter I'm stuck on. It's
meant to be a pointer to a string that specifies the printer's name.
I have for this
const char Laserjet4000[] = "HP LaserJet 4000 Series PS";
I've typecast this pointer so it compiles, but the OpenPrinter function
still fails!!!
if(!OpenPrinter((LPTSTR)Laserjet4000, &hPrinter, NULL))
{
//error code
}
_________________________________________________________________
MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx
_______________________________________________
Dev-cpp-users mailing list
Dev...@li...
https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
|