I have a program that when run from a command line it works as intended. I now have the program setup as a service. From another forum post it was suggested I use GetPrivateProfileString() to read parameters from an INI file. That works great except that when I run it as a service it doesn't find the ini file unless I hardcode the whole path in.
I have an AppDirectory registry entry and the program finds other files that it uses. I've also tried putting the program in the path.
Does GetPrivateProfileString() have to have a full path? Is there something I should do differently?
Thanks,
James
I have an AppDirectory registry entry and the program finds other files that it uses. I've also tried putting the program in the path.
Does GetPrivateProfileString() have to have a full path? Is there something I should do differently?
Thanks,
James