Lars Gullik Bjønnes wrote: > | That would suggest code: > | homepath_ = GetEnvPath("USERPROFILE"); >> > | Thoughts? > > I agree. Should we cater for older windows?
How old is 'older'? Presumably, the code would become: homepath_ = GetEnvPath("USERPROFILE"); if (homepath_.empty()) { // Insert nastiness here. } The trouble is that I have no idea what nastiness to insert. Is it sufficient to use Ruurd's HOMEDRIVE + HOMEPATH combo? -- Angus