c++ - GetTempPath shows different user then current -
i using mfc on windows 8. when temp
path, contains path different user account:
c:\users\aace~1\appdata\temp
the permission write file closed , cfile
fails. account is:
c:\users\dmitry
i debug , launch application under account. problem? also, running on windows 8 1 user account.
the documentation function describes how works:
the gettemppath function checks existence of environment variables in following order , uses first path found:
- the path specified tmp environment variable.
- the path specified temp environment variable.
- the path specified userprofile environment variable.
- the windows directory.
so, cause have mis-configuration of environment. check value of tmp
, temp
environment variables.
Comments
Post a Comment