Thread overview
How to write values to Windows' Registry?
Jan 20, 2004
Andrew Bond
Jan 21, 2004
Matthew
Jan 22, 2004
Andrew Bond
Jan 23, 2004
Matthew
Jan 26, 2004
Eamonn Wallace
Jan 26, 2004
Matthew
January 20, 2004
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


January 21, 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 Bond

Hi 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>]

[btw#2 - are you on the mailing list? That'll let you know as soon as 1.7.1, 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

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


January 22, 2004
Matthew

> The short and unsatisfactory answer is there isn't, at the moment STLSoft v1.7.1 ... will contain the reg-writing functionality

No 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 feedback

By all means - it would be trivial for me to switch the PIMPL class and re-run my own tests.

> [btw#2 - are you on the mailing list?

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).


January 23, 2004
> Matthew
>
> > The short and unsatisfactory answer is there isn't, at the moment STLSoft v1.7.1 ... will contain the reg-writing functionality
>
> No 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.

Good. I shall relax a little. :)

> 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 feedback
>
> By all means - it would be trivial for me to switch the PIMPL class and re-run my own tests.

Cool. That'll help a lot.

> > [btw#2 - are you on the mailing list?
>
> No I wasn't, but now I am.

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.

> 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).

There may be some moves on this, but I'll keep the powder dry for the mo.



January 26, 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 is

I look forward to this being added:)


> [btw#2 - are you on the mailing list? That'll let you know as soon as
1.7.1,
> or any betas, is released]

Tried to join...but keep getting "resource unavailable":)

-- 
Regards

Eamonn Wallace




January 26, 2004
> > The short and unsatisfactory answer is there isn't, at the moment. This
is
>
> I look forward to this being added:)

Well now that I've got two potential users, how can I resist? <G>

> > [btw#2 - are you on the mailing list? That'll let you know as soon as
> 1.7.1,
> > or any betas, is released]
>
> Tried to join...but keep getting "resource unavailable":)

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

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