quote:
Originally posted by CookieRevised
quote:
Originally posted by deAd
quote:
Originally posted by CookieRevised
1) It is not always the same (as in a subdir under the application directory) for everybody when they first install Plus!.
2) _every_ directory under Documents and settings (including documents & settings itself) can be renamed and moved by the Windows user.
And even if nothing changed, you must never ever hard code a path.
I have changed the code to get the path using SHGetFolderPath. It will be changed in the next update
. I have not accounted for (1) yet, and imo (2) is pretty unlikely -- wouldn't that screw up Plus! as well?
this still isn't correct....
...
no as Plus! uses proper methods to get paths like "documents and settings", "program files", etc, etc... it uses the SHGetSpecialFolderPath , SHGetSpecialFolderLocation, SHGetPathFromIDList, etc APIs like every program should (and does).

SHGetFolderPath supercedes SHGetSpecialFolderPath, and accepts the same CSIDL as SHGetSpecialFolderPath. What's wrong with it? I'll add the other steps too.