|
Archives
D Programming
DD.gnu digitalmars.D digitalmars.D.bugs digitalmars.D.dtl digitalmars.D.ide digitalmars.D.dwt digitalmars.D.announce digitalmars.D.learn digitalmars.D.debugger C/C++ Programming
c++c++.announce c++.atl c++.beta c++.chat c++.command-line c++.dos c++.dos.16-bits c++.dos.32-bits c++.idde c++.mfc c++.rtl c++.stl c++.stl.hp c++.stl.port c++.stl.sgi c++.stlsoft c++.windows c++.windows.16-bits c++.windows.32-bits c++.wxwindows digitalmars.empire digitalmars.DMDScript electronics |
digitalmars.D.dwt - User/app preferences api?
Is there some api in DWT for user preferences or persistent app settings? Like something that would use the Windows registry under win32 and ~/.something files on Linux? I was using dfl.registry for this previously. And if not in DWT, maybe someone can recommend a small lib that would take care of this? I just want to avoid re-inventing the wheel of trying to figure out the right platform-specific place to store such stuff and deciding on storage formats etc. I don't care if it doesn't use the Registry on windows, but on Windows it should figure out that files go into %HOME% if it is set and exists and otherwise into c:\documents and settings\username, etc. --bb Apr 10 2008
Bill Baxter schrieb:Is there some api in DWT for user preferences or persistent app settings? Like something that would use the Windows registry under win32 and ~/.something files on Linux? I was using dfl.registry for this previously. And if not in DWT, maybe someone can recommend a small lib that would take care of this? I just want to avoid re-inventing the wheel of trying to figure out the right platform-specific place to store such stuff and deciding on storage formats etc. I don't care if it doesn't use the Registry on windows, but on Windows it should figure out that files go into %HOME% if it is set and exists and otherwise into c:\documents and settings\username, etc. --bb Apr 10 2008
Frank Benoit wrote:Bill Baxter schrieb:Is there some api in DWT for user preferences or persistent app settings? Like something that would use the Windows registry under win32 and ~/.something files on Linux? I was using dfl.registry for this previously. And if not in DWT, maybe someone can recommend a small lib that would take care of this? I just want to avoid re-inventing the wheel of trying to figure out the right platform-specific place to store such stuff and deciding on storage formats etc. I don't care if it doesn't use the Registry on windows, but on Windows it should figure out that files go into %HOME% if it is set and exists and otherwise into c:\documents and settings\username, etc. --bb Apr 10 2008
|