[bt-devel] Windows Module Install bug
Peter von Kaehne
refdoc at gmx.net
Wed Apr 22 00:21:01 MST 2009
Peter von Kaehne wrote:
> Matthew Talbert wrote:
>
>> (There are two problems with getenv; the first is that if the
>> environment variable contains symbols that aren't representable in the
>> encoding used by the C runtime, it will not get the correct result.
>> The second is that environment variables on Windows can be nested, so
>> you should either use the Windows methods or carefully look at the
>> return values to make sure that they don't contain variables
>> themselves.)
>
> Not being a programmer and all, but I would be extremely surprised if CW
> is the first project to run into these two problems. I am sure there
> must be some inbuilt methods (or even some settings/additional
> attributes to getEnv) to correct this - rather than having to code
> specifically to correct encoding and expand variables contained in
> variables.
Is this here a (partial) answer?
http://msdn.microsoft.com/en-us/library/tehxacec(VS.80).aspx
More information about the bt-devel
mailing list