>     homeDrive = toString(getenv("HOMEDRIVE")).dup;
>     homePath = toString(getenv("HOMEPATH")).dup;

don't forget, that D char[] is utf8 and windows char* is 8-bit chars, not utf8.
so you should import std.windows.charset and use toMBSz() as D->WindowsAPI and 
fromMBSz as WindowsAPI->D string converter. for example:
homeDrive = fromMBSz(getenv("HOMEDRIVE")).dup;

Reply via email to