<p>We may start converting an old VS2003 MFC project to use the fancy new features provided by the MFC Feature Pack and VS2008. Several of the new UI controls would be very nice except for one thing - they automatically save their information to the registry. I don't have a problem with the registry, but for the multiple environments the users use out program from, it's much easier to save user data to the database. </p>

<p>So, I'm hoping that there is one main "access the registry" function that could be overloaded to point the database. But brief investigation hasn't turned up anything. Has anyone else had any success doing something similar?</p>

The MFC feature pack uses code supplied by BCGSoft and they added this feature (so you can save state to an XML file, database, etc.) way back in 2001.  I don't have the feature pack on this PC but try looking for a class called something like
```
CMFCRegistrySP
```
.
I will check myself tomorrow.
Does the
```
StateCollection
```
sample do this?
http://msdn.microsoft.com/en-us/library/bb983406.aspx