快速登录:  

Forum: VirtualDJ Plugins

话题: To-Save or Not-to-Save last setting

由于该帖子已年深日久,可能包含陈旧过时或描述错误的信息。

I don't see where this is discussed before, but isn't it very handy for plug-ins to save their last used setting ? Meaning to save the position of sliders and button selections when they unload ?

I know that it is additional work for Plug-in developers, but if everyone agrees that it is useful, could some developers who have already done it share their method as a best practice, to make it easier for other plug-in developers to implement ?

I think many developers don't implement because it is too much work.... comments ?

 

发表时间 Wed 13 Jul 05 @ 6:45 pm
kaleoPRO InfinityMember since 2003
We allready share some plugin source code :)
 

发表时间 Wed 13 Jul 05 @ 8:11 pm
djcelPRO InfinityModeratorMember since 2004
In fact there is two methods:
* the complicated in XML as you need to use an external class in C++ to work with the XML. But of course it's the more beautiful way
* the second one is the easier, you save data in a simple file (you can use .txt or .ini or your own extension) and you use some famous function to write/read in file. In language C, you declare a pointer on a type FILE and you use the two functions fprintf() and fscanf(). Include the library stdio.h at the beginning.
You can use the language C++ with the library iostream if you prefer

For the moment i use the second choice as i don't have a lot of options and i don't see the interest of xml for my plugins I showed the way to save data to Deun-Deun but he didn't succeed to use it and i was busy for a long time so i don't have news from him for the moment
 

发表时间 Wed 13 Jul 05 @ 10:57 pm
dose any one know how to get the lame plugin (the plugin for recording)
 

发表时间 Thu 14 Jul 05 @ 9:51 pm
kaleoPRO InfinityMember since 2003
You will not find it on this site.
Search on the Internet (lame_enc.dll), it is a freeware.
 

发表时间 Thu 14 Jul 05 @ 10:49 pm
now how do you do that second choice you said because this is the biggest problem i have with these plugins
 

发表时间 Fri 19 Dec 08 @ 6:42 pm
SBDJPRO Infinity Member since 2006
dizon7th wrote :
now how do you do that second choice you said because this is the biggest problem i have with these plugins


It's only relevant to plugin developers, and file I/O is a basic concept ;)

Every plugin I can think of saves it settings these days?
 

发表时间 Fri 19 Dec 08 @ 7:01 pm
see im not a plugin developer
 

发表时间 Wed 07 Jan 09 @ 5:20 pm
SBDJPRO Infinity Member since 2006
In which case I don't understand your query.
 

发表时间 Wed 07 Jan 09 @ 5:58 pm


(陈旧帖子或论坛版块会自动关闭)