fopen cannot open device name for network printer in windows xp

2005-09-23 Thread The One
Hi, I've a c program that prints to network printer by getting a filehandle from fopen(\\computer1\printer1, wb). That has always 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

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

2005-09-23 Thread Bengt-Arne Fjellner
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