C++ Code Guru's
DY357LX
Playing since day 1. Still can't Comm.England Join Date: 2002-10-27 Member: 1651Members, Constellation
in Off-Topic
<div class="IPBDescription">Anyone Know About Reading Reg Values?</div> Yes..... I've searched Google! Lets get that out of the way a.s.a.p.
(Actually, i'm on page 6 of Google's results at the moment.)
I'm trying to write a little [DOS] application in C++ to simply view registry keys/values.
For example, if I wanted to find out what what screen resolution Half-Life was running in i'd read the following keys.
Current User \\ Software \\ Valve \\ Half-Life \\ Settings \\ ScreenWidth
Current User \\ Software \\ Valve \\ Half-Life \\ Settings \\ ScreenHeight
(Yes, I realise I can just launch Steam and check these values through the "OPTIONS" menu but I don't learn anything like that.)
So.... can anyone help me and possibly provide alittle sample code or point in the direction of a website that can do either?
Thanks.
(Actually, i'm on page 6 of Google's results at the moment.)
I'm trying to write a little [DOS] application in C++ to simply view registry keys/values.
For example, if I wanted to find out what what screen resolution Half-Life was running in i'd read the following keys.
Current User \\ Software \\ Valve \\ Half-Life \\ Settings \\ ScreenWidth
Current User \\ Software \\ Valve \\ Half-Life \\ Settings \\ ScreenHeight
(Yes, I realise I can just launch Steam and check these values through the "OPTIONS" menu but I don't learn anything like that.)
So.... can anyone help me and possibly provide alittle sample code or point in the direction of a website that can do either?
Thanks.
Comments
There's a good chance you'll find it there. If not with C++, probably with C#. You may also want to consider something as simple as a VBscript.
yeah, never had to do that before, try <a href='http://www.msdn.com' target='_blank'>http://www.msdn.com</a>