I have a program that is now working correctly when I run it from a command prompt on NT. I installed the program as a service using srvany.exe. Now it doesn't work.
Problem is that I have to hard code file locations that the program uses. For example, I read a file for some parameters and the program bombs unless I hardcode the location of the file. How do you deal with this type of situation? I need the program to run as a service.
I also open and write to a log file. Now I could store that location in the ini file, but currently it has the same problem.
Thanks,
James
Problem is that I have to hard code file locations that the program uses. For example, I read a file for some parameters and the program bombs unless I hardcode the location of the file. How do you deal with this type of situation? I need the program to run as a service.
I also open and write to a log file. Now I could store that location in the ini file, but currently it has the same problem.
Thanks,
James