Discussion:
getenv() equievalent in Win CE
(too old to reply)
lakshmi
2006-05-04 10:42:52 UTC
Permalink
Hi,

I am new to Win CE development. We are trying to port ares library to
Win CE. But it is giving lot of compiler errors. I could get through
most of the errors by writing the alternative code. But I am not able
to find getenv() equivalent in Win CE.

Can any one of you please give me the getenv() equivalent code for Win
CE?

Thanks,
Lakshmi Prasanna
voidcoder
2006-05-04 11:08:18 UTC
Permalink
There is no equivalent. You can build your own environment wrapper,
say using registry to store strings.
Post by lakshmi
Hi,
I am new to Win CE development. We are trying to port ares library to
Win CE. But it is giving lot of compiler errors. I could get through
most of the errors by writing the alternative code. But I am not able
to find getenv() equivalent in Win CE.
Can any one of you please give me the getenv() equivalent code for Win
CE?
Thanks,
Lakshmi Prasanna
Ulrich Eckhardt
2006-05-04 11:07:41 UTC
Permalink
Post by lakshmi
I am new to Win CE development. We are trying to port ares library to
Win CE. But it is giving lot of compiler errors. I could get through
most of the errors by writing the alternative code. But I am not able
to find getenv() equivalent in Win CE.
Can any one of you please give me the getenv() equivalent code for Win
CE?
There are no environment variables in CE, I guess they are considered too
old-fashioned or obsolete to be included in an embedded OS. Considering how
many people even know about their existence and use that's not even
surprising...

There is also no such thing as a current working directory for a process,
another thing that struck me as odd.

Uli
lakshmi
2006-05-08 07:10:18 UTC
Permalink
Hi All,

Thanks a lot for your replies.

What is meant by using registry to store strings?How do I do that?

Has anyone used ares library for Win CE?
Ulrich Eckhardt
2006-05-08 07:59:03 UTC
Permalink
Post by lakshmi
What is meant by using registry to store strings?How do I do that?
I think the idea was that typically, environment variables are used to make
settings that affect a library on a per user or system-wide base and that
this could be achieved using the Windows registry instead. If that's a good
idea depends on how the environment variables were initially used, not
something that can be said without knowing much more about what you are
doing.
Post by lakshmi
Has anyone used ares library for Win CE?
What is ares and what does it have to do with environment variables?

Uli

Loading...