c++.stlsoft - How to write values to Windows' Registry?
- Andrew Bond (6/6) Jan 20 2004 I've just begun to incorporate some of the WinSTL library into my apps a...
- Matthew (33/39) Jan 21 2004 Hi Andrew
- Andrew Bond (16/20) Jan 22 2004 No problem - I have an alternative implementation (based on Borland's VC...
- Matthew (7/27) Jan 22 2004 Welcome!
- Eamonn Wallace (8/11) Jan 26 2004 I look forward to this being added:)
- Matthew (15/21) Jan 26 2004 There was a server outage for a few hours in the last 24. Please try aga...
I've just begun to incorporate some of the WinSTL library into my apps and have hit a problem with the Registry classes - although I can read keys/values from the Registry, I cannot fathom out how to WRITE values. Can anyone help please with a short excample? Many thanks in anticipation. Andrew Bond
Jan 20 2004
"Andrew Bond" <andrew.bond geocentrix.co.uk> wrote in message news:buj98a$2g5h$1 digitaldaemon.com...I've just begun to incorporate some of the WinSTL library into my apps and have hit a problem with the Registry classes - although I can read keys/values from the Registry, I cannot fathom out how to WRITE values. Can anyone help please with a short excample? Many thanks in anticipation. Andrew BondHi Andrew The short and unsatisfactory answer is there isn't, at the moment. This is something I've serious plans to add, but the progress of STLSoft has been slowed of late due to my working on my new book. (Not that this is a shameless plug, or anything, you understand ...) The good news is that the writing phase of the book will be done by the end of this month, and one of the tasks for Feb is to release the long-put-off STLSoft v1.7.1, which will contain the reg-writing functionality along with a host of other new features. A partial solution to see you through is that you are able to access the HKEY key handle of a given basic_reg_key<> instance via the get_key_handle() method. This means that you can use the Win32 API registry functions in order to write the values. Sorry I can't be more helpful at this point. If you are able to survive the workaround for the next 2-4 weeks, your requirements will be met in the next release. [btw, would you be interested in helping me by providing test feedback when I work on this? Your reward may be mentions in the next book - which will be featuring much of this kind of stuff - which I'll be starting in a couple of months. <g>] or any betas, is released] Cheers Matthew Wilson STLSoft moderator (http://www.stlsoft.org) Contributing editor, C/C++ Users Journal (www.synesis.com.au/articles.html#columns) "If I'm curt with you it's because time is a factor. I think fast, I talk fast, and I need you guys to act fast" -- Mr Wolf ---------------------------------------------------------------------------- ---
Jan 21 2004
MatthewThe short and unsatisfactory answer is there isn't, at the moment STLSoft v1.7.1 ... will contain the reg-writing functionalityNo problem - I have an alternative implementation (based on Borland's VCL TRegistry class) that is serving the purpose at the moment. Whenever I use third party libraries, I embed them in my own classes (using the PIMPL idiom), so I am protected against the knock-on effects of changing the implementation. With the apparant demise of the C++-based version of the VCL, I wanted to find an alternative implementation that would plug in as my PIMPL. It can certainly wait a few months or so.[btw, would you be interested in helping me by providing test feedbackBy all means - it would be trivial for me to switch the PIMPL class and re-run my own tests.No I wasn't, but now I am. Andrew PS I would be VERY interested in any STLSoft plans for an XML parser/writer ... currently I use TurboPower's XMLPro ... which is also sadly no longer under development (and not released to the public domain, afaik).
Jan 22 2004
MatthewGood. I shall relax a little. :)The short and unsatisfactory answer is there isn't, at the moment STLSoft v1.7.1 ... will contain the reg-writing functionalityNo problem - I have an alternative implementation (based on Borland's VCL TRegistry class) that is serving the purpose at the moment. Whenever I use third party libraries, I embed them in my own classes (using the PIMPL idiom), so I am protected against the knock-on effects of changing the implementation.With the apparant demise of the C++-based version of the VCL, I wanted to find an alternative implementation that would plug in as my PIMPL. It can certainly wait a few months or so.Cool. That'll help a lot.[btw, would you be interested in helping me by providing test feedbackBy all means - it would be trivial for me to switch the PIMPL class and re-run my own tests.Welcome! It's very low traffic, well it has been recently at least. There'll be a lot of new stuff in Feb/Mar, but it's been held up by the book.No I wasn't, but now I am.Andrew PS I would be VERY interested in any STLSoft plans for an XMLparser/writer... currently I use TurboPower's XMLPro ... which is also sadly no longer under development (and not released to the public domain, afaik).There may be some moves on this, but I'll keep the powder dry for the mo.
Jan 22 2004
"Matthew" <matthew.hat stlsoft.dot.org> wrote in message news:bulgaq$3023$1 digitaldaemon.com...The short and unsatisfactory answer is there isn't, at the moment. This isI look forward to this being added:)1.7.1,or any betas, is released]Tried to join...but keep getting "resource unavailable":) -- Regards Eamonn Wallace
Jan 26 2004
isThe short and unsatisfactory answer is there isn't, at the moment. ThisI look forward to this being added:)Well now that I've got two potential users, how can I resist? <G>There was a server outage for a few hours in the last 24. Please try again, or if not, just drop me an email to the decoded address of this post. :) Cheers -- Matthew Wilson STLSoft moderator (http://www.stlsoft.org) Contributing editor, C/C++ Users Journal (www.synesis.com.au/articles.html#columns) "If I'm curt with you it's because time is a factor. I think fast, I talk fast, and I need you guys to act fast" -- Mr Wolf ---------------------------------------------------------------------------- ---1.7.1,or any betas, is released]Tried to join...but keep getting "resource unavailable":)
Jan 26 2004