title: How do I use the registry?
body: <p>In the simplest possible terms (I'm an occasional programmer who lacks up-to-date detailed programming knowledge) can someone explain the simplest way to make use of the registry in codegear C++ (2007).</p>
  
  <p>I have a line of code in an old (OLD!) program I wrote which is causing a significant delay in startup...</p>
  
  <p>DLB->Directory=pIniFile->ReadString("Options","Last Directory","no key!");</p>
  
  <p>The code is making use of an ini file.  I would like to be able to use the registry instead (to write variables such as the last directory the application was using)</p>
  
  <p>But the specifics are not important.  I'd just like a generic how-to about using the registry that's specific to codegear c++ builder.</p>
  
  <p>I've googled this, but as usual with this type of thing I get lots of pages about c++ builder and a few pages about the windows registry, but no pages that explain how to use one with the other.</p>