| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
| Message-ID: | <1685.130.240.136.220.1127488066.squirrel@pinus> |
| In-Reply-To: | <20050923123423.59754.qmail@web33907.mail.mud.yahoo.com> |
| References: | <20050923123423 DOT 59754 DOT qmail AT web33907 DOT mail DOT mud DOT yahoo DOT com> |
| Date: | Fri, 23 Sep 2005 17:07:46 +0200 (CEST) |
| Subject: | Re: fopen cannot open device name for network printer in windows xp |
| From: | "Bengt-Arne Fjellner" <Bengt-Arne DOT Fjellner AT ltu DOT se> |
| To: | cygwin AT cygwin DOT com |
| User-Agent: | SquirrelMail/1.4.5 |
| MIME-Version: | 1.0 |
The One skrev:
> Hi,
>
> I've a c program that prints to network printer by
> getting a filehandle from
> fopen("\\computer1\printer1", "wb"). That has always
Try with:
fopen("\\\\computer1\\printer1", "wb").
Instead.
> worked on Windows 95, 98 & 2000.
>
> When it's running under windows xp (sp1 or sp2), fopen
> returns a NULL. Has any one had a similar problem? Is
> there a solution to this?
>
> Thank you
>
>
>
>
> __________________________________
> Yahoo! Mail - PC Magazine Editors' Choice 2005
> http://mail.yahoo.com
>
> --
> Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
> Problem reports: http://cygwin.com/problems.html
> Documentation: http://cygwin.com/docs.html
> FAQ: http://cygwin.com/faq/
>
--
Bengt-Arne Fjellner
Luleå University
Skellefteå
Sweden
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |