std.process.system and friends

Steven Schveighoffer schveiguy at yahoo.com
Fri Feb 8 09:58:12 PST 2013


On Fri, 08 Feb 2013 04:17:02 -0500, Peter Sommerfeld <noreply at rubrica.at>  
wrote:

> Steven Schveighoffer schrieb:
>> Windows is actually EXACTLY the same, except you don't use getenv and  
>> putenv, you use SetEnvironmentVariable and GetEnvironmentVariable.  You  
>> can use the former if you want to use the C compatibility layer, but  
>> that's only if you use all compatibility layer functions for everything  
>> (executing processes etc.)
>
> How is the latter done ? A Version switch to posix?

Actually, D on Windows uses DMC as its C runtime, so you cannot use any  
MSVC C runtime functions, such as _putenv.  So this is not an option for  
you.

If DMC has equivalent functions, you will have to look them up.

-Steve


More information about the Digitalmars-d-learn mailing list