This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Program doesn't work when running as a service in windows
- From: The One <i51359 at yahoo dot com>
- To: cygwin at cygwin dot com
- Date: Tue, 27 Sep 2005 19:39:05 -0700 (PDT)
- Subject: Program doesn't work when running as a service in windows
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 finding out
the when it's running as a service, fopen is returning
NULL.
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/