This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: fopen cannot open device name for network printer in windows xp


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]