Getting user temporary folder path in Windows

后端 未结 9 1544
醉梦人生
醉梦人生 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:25

    Is there a reason you can't use the Win32 GetTempPath API?

    • http://msdn.microsoft.com/en-us/library/aa364992(VS.85).aspx

    This API is available starting with W2K and hence will be available on all of your listed targets.

提交回复
热议问题