D
dave m
I have a small application that launches an application via the shell
function when a listening socket receives data from another PC. This works
fine using a WinForms environment.
However, I want this listing app to run in the background as a service.
When debugging the service, the line -
ID = Shell("C:\TestApp.exe", AppWinStyle.NormalFocus)
returns a PID value, executes without errors, but the program "TestApp.exe"
doesn't start. Task manager show TestApp as a running process, but it
really didn't because it would have incremented a value in a database.
Once again the code runs fine in WinForms but not as a service.
Any suggestions would be greatly appreciated.
Dave M
function when a listening socket receives data from another PC. This works
fine using a WinForms environment.
However, I want this listing app to run in the background as a service.
When debugging the service, the line -
ID = Shell("C:\TestApp.exe", AppWinStyle.NormalFocus)
returns a PID value, executes without errors, but the program "TestApp.exe"
doesn't start. Task manager show TestApp as a running process, but it
really didn't because it would have incremented a value in a database.
Once again the code runs fine in WinForms but not as a service.
Any suggestions would be greatly appreciated.
Dave M