Getting user temporary folder path in Windows

后端 未结 9 1624
醉梦人生
醉梦人生 2020-12-30 00:45

How I can get the user\'s temp folder path in C++? My program has to run on Windows Vista and XP and they have different temp paths. How I can get it without losing compatib

9条回答
  •  孤独总比滥情好
    2020-12-30 01:37

    GetTempPath isn't going to work on Vista unless the users have administrative access. I'm running into that problem right now with one of my apps.

提交回复
热议问题