cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Windows Programming
[Visual C++] How do you get a service to
[Visual C++] How do you get a service to read environment variables?
May 15, 2008 at 9:31am UTC
Psy
(2)
I've tried both CString::GetEnvironmentVariable() and getenv(). They work fine when running as an exe but fail when running as a service. Is there any way around this?
May 15, 2008 at 2:49pm UTC
Psy
(2)
Nevermind, the problem existed because I had the environment variable in the user section instead of the system section.
Topic archived. No new replies allowed.