As a developer, how should I use the special folders in Windows Vista (and Windows 7)?

后端 未结 5 686
野的像风
野的像风 2020-12-05 04:53

Where should I save data related to my application? Where should I save configuration files? Where should I save temporary files? Should I do it in \"Documents\"? \"AppData\

5条回答
  •  有刺的猬
    2020-12-05 05:22

    In addition you should use SHGetFolderPath or SHGetKnownFolderPath (in Vista+) to get the paths. This will provide you the correct location on the current system regardless of the version or the language of the current installation. Never hard code any path you are using.

提交回复
热议问题