<br>Is there any simple way to write or read information from the registry?<br>or just the hard way?? <p>Martin G Broman<br><a href=mailto:mgb_svea@hotmail.com>mgb_svea@hotmail.com</a><br><a href= > </a><br>DWS - Alpha Whitin Dead Wolf Society
Thanks!<br>There is still this problem, i do not know how to use it!<br>tried to read the help files, did no good!<br>So if you could write a quick code to write a registry entry<br>and another to read that same entry!<br>Thanks again for any further help! <p>Martin G Broman<br><a href=mailto:mgb_svea@hotmail.com>mgb_svea@hotmail.com</a><br><a href= > </a><br>DWS - Alpha Whitin Dead Wolf Society
TRegistry *Path;<br><br>Path=new TRegistry;<br>Path->RootKey=HKEY_LOCAL_MACHINE; // Or other Root key<br>Path->OpenKey("\\Software\\MySoftware",true); // Open or create<br><br>// To assure you have a value :<br>if (!Path->ValueExists("MyKey"){<br> Path->WriteInteger("MyKey",_DEFAUL_VALUEl);<br> }<br><br>// To Read :<br>int Value;<br>Value=Path->ReadInteger("MyKey"<br> // or <br>String Value;<br>Value=Path->ReadString("MyKey"<br><br>// Write :<br>int Value;<br>Path->WriteInteger("MyKey",Value);<br> // or <br>String Value;<br>Path->WriteInteger("MyKey",Value);<br>...<br>delete Path;<br> <p>Ferran Casarramona<br><a href=mailto: > </a><br><a href= > </a><br>
you know if you just put some extra explanations into it, that response could make a good FAQ for this forum. <p>Karl<br><a href=mailto:kb244@kb244.8m.com>kb244@kb244.8m.com</a><br><a href=
</a><br>Experienced in , or have messed with : VC++, Borland C++ Builder, VJ++6(starting),VB-Dos, VB1 thru VB6, Delphi 3 pro, Borland C++ 3(DOS), Borland C++ 4.5, HTML,Visual InterDev 6, ASP(WebProgramming), QBasic(least i didnt start with COBOL)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.