[Interest] about QSettings

Tony Rietwyk tony at rightsoft.com.au
Thu Jul 19 04:16:24 CEST 2012


> > > *Sent:* Tuesday, July 17, 2012 9:22 PM
> > >
> > > hi,
> > > when i use the qt 4.7.4 with windows xp, i found that when i use the
> > > QSettings to write sub key of HKEY_LOCAL_MACHINE, it fails.
> > > but when i write the sub key of HKEY_CURRENT_USER, it success.
> > >
> > > i know that QSettings use the windows api (eg RegCreateKey....) to
> > > do it, so I use the RegCreateKey to do it directly, but it fails too.
> > >
> > > my windows account is administrator.
> > >
> > > thanks in advance.

Hi, 

What error do you get from calling RegCreateKey directly?   What type of
application is it?  How is it started?  

Tony





More information about the Interest mailing list