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:

  1. the path specified tmp environment variable.
  2. the path specified temp environment variable.
  3. the path specified userprofile environment variable.
  4. the windows directory.

so, cause have mis-configuration of environment. check value of tmp , temp environment variables.


Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -