|
From: Daniel G. <sp...@ho...> - 2002-04-12 11:41:05
|
>From: "Daniel Glenfield" <sp...@ho...>
>To: sp...@ho...
>Subject: Re: [Dev-C++] OpenPrinter()
>Date: Fri, 12 Apr 2002 12:40:10 +0100
>
>
>Sorted - I installed a local printer instead of using a networked one.
>(actually I'm printing to a file) and it returns TRUE.
>
>Thanks everyone,
>Daniel
>
>>From: "Daniel Glenfield" <sp...@ho...>
>>To: dev...@li...
>>Subject: [Dev-C++] OpenPrinter()
>>Date: Thu, 11 Apr 2002 16:58:25 +0100
>>
>>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
>
_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com
|