What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Plug-Ins » Important notice when saving data in your plugin

Important notice when saving data in your plugin
Author: Message:
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: Important notice when saving data in your plugin
quote:
Originally posted by Matty
Why not just save settings to the HKEY_CURRENT_USER\Software\Company\Program section of the registry wouldn't that make the most sense?
indeed.... That is what that place is made for...

But that is for registry settings...

------------

I know what n0n4m3 means though. I too hate it when each plugin (or program for that matter) starts saving stuff in places I don't like (doesn't matter where it is, it should always be customizable!).

But CyBeRDuDe also has a point: most programs save their files in the program folder. At least, most older programs do this; newer programs also indeed tend to use Documents and Settings\<username>\Application Data\<program folder>. The thing with that is: if they do, not all are customizable, which is a bi**h.

But we are talking plugins here. Plugins aren't programs! And all plugin developpers know that all the plugins are stored in the same directory. So, IMO, no, it doesn't make sense that plugins save their data to the plugins folder (especially not when it isn't customizable); imagine that every plugin does this, you'll soon end up with a big mess in your plugins folder, not to mention possible file name conflicts...

IMO, Plugins, if they absolutely need to save a file, need to save this, by default, in a subdirectory of the plugins folder. Or in %appdir%\<program folder>. But mostly, it must be customizable by the user! This is the most logical and user friendly way to go... IMHO.

-----

PS:

quote:
Originally posted by (CyBeRDuDe)
But then again, we would then have to make extra code to be backwards compatible with the older windows, since they don't have the same kinds of Application Data folder...
No you don't, you simply need to call the appropiate Window API's. There is an "application directory" in every Windows version.

Besides, even if there were no such API's, isn't making a plugin backward compatible and compatible with all possible Windows versions (which Plus! also can run on) the right thing todo anyways?

quote:
Originally posted by Tobiaz
quote:
Why not just save settings to the HKEY_CURRENT_USER\Software\Company\Program section of the registry wouldn't that make the most sense?
Yes... but can you save pictures and other files in the Registry...?
Yes, you actually can though (to some extent). You need to store them as binary data, which is rather easy to do... But I wouldn't recommend it though as the registry is loaded entirly each time you start Windows. This also means if you store many data files and stuff like 20MB of pictures, you'll soon see that your startup time (and maybe even Windows in general) is becomming extremely slow...


This post was edited on 11-07-2005 at 06:06 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
11-07-2005 05:58 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Important notice when saving data in your plugin - by n0n4m3 on 11-07-2005 at 03:21 PM
RE: Important notice when saving data in your plugin - by (CyBeRDuDe) on 11-07-2005 at 05:02 PM
RE: Important notice when saving data in your plugin - by matty on 11-07-2005 at 05:37 PM
RE: Important notice when saving data in your plugin - by Tobiaz on 11-07-2005 at 05:49 PM
RE: Important notice when saving data in your plugin - by CookieRevised on 11-07-2005 at 05:58 PM
RE: Important notice when saving data in your plugin - by n0n4m3 on 11-07-2005 at 06:02 PM
RE: Important notice when saving data in your plugin - by (CyBeRDuDe) on 11-07-2005 at 08:45 PM
RE: RE: Important notice when saving data in your plugin - by CookieRevised on 11-07-2005 at 09:29 PM
RE: Important notice when saving data in your plugin - by GazzX_112 on 11-08-2005 at 07:19 AM
RE: Important notice when saving data in your plugin - by (CyBeRDuDe) on 11-08-2005 at 05:48 PM
RE: Important notice when saving data in your plugin - by Dempsey on 11-08-2005 at 09:09 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On