Storing settings for Browser Helper Object
I have a browser helper object on IE that have some "clipboard history" functions. I have been storing set开发者_运维知识库tings into a file into the directory where the BHO file is (currently "$PROGRAMFILES\Common files\folder\", it was like this when i received the code but i can change it).
In my computer (XP SP3 in virtual machine) I have no problems writing the settings file, but I was wondering it this could cause "writing permission" problems in other computers and if it does what other method should I use to make sure it will work on all Windows computers?
It could definitely have permission problems. I would store the file in an appropriate subfolder under the "Application Data" or "Local Settings\Application Data" in user's profile folder. The user running it should always have write permissions to those folders.
精彩评论