Re: Program doesn't work when running as a service in windows

2005-09-27 Thread Igor Pechtchanski
On Tue, 27 Sep 2005, The One wrote: > Hi, > > The C program runs fine in Dos prompt or Cygwin Shell. > When run as a service, it's not working. The service > is started without error. The program checks for > files in a directory, if there's a file it will print > to the network printer by call

Program doesn't work when running as a service in windows

2005-09-27 Thread The One
Hi, The C program runs fine in Dos prompt or Cygwin Shell. When run as a service, it's not working. The service is started without error. The program checks for files in a directory, if there's a file it will print to the network printer by calling fopen("//computername/printer", "w"). I'm fi