EXE to Service
-
-
Hello All, does anyone know how I can run a MFC Executable as a Windows-service? It is a program that periodically checks for a file, and if found processes it and writes results to another file, so it has no user interface. Thanks, Ronald Wilmink.
I wrote a program called GenSvc which will do that... http://codebeetle.com/page.php?id=2[^] The source code is also available.
-
Hello All, does anyone know how I can run a MFC Executable as a Windows-service? It is a program that periodically checks for a file, and if found processes it and writes results to another file, so it has no user interface. Thanks, Ronald Wilmink.
rwilmink wrote: It is a program that periodically checks for a file... It would be better to let the OS notify you that the file has been created rather than waste CPU cycles checking for it. See
ReadDirectoryChangesW()
andFindFirstChangeNotification()
.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow