Click here to Skip to main content
Click here to Skip to main content

A handy class to make use of Windows Registry

By , 15 Aug 2004
 
simple_registry_demo.zip
a_better_example.exe
dirty_and_fast.exe
main.exe
with_trace.exe
simple_registry_src.zip
a_better_example
a_better_example.dsp
dirty_and_fast
dirty_and_fast.dsp
main.dsp
main.dsw
with_trace
with_trace.dsp
//Dirty and fast

#include "registry.h"
#include "string.h"

int main(int, char*)
{
	registry reg("Software\\Company");	
	reg["Language"]="English";
	reg["Width"]=50;
	printf("The address is: %s\n",(const char *)reg["Address"]); //prints nothing unless you put something in before
	return 0;
}

By viewing downloads associated with this article you agree to the Terms of use and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

About the Author

__PPS__
Canada Canada
Member
Big Grin | :-D

Permalink | Advertise | Privacy | Mobile
Web04 | 2.6.130523.1 | Last Updated 16 Aug 2004
Article Copyright 2004 by __PPS__
Everything else Copyright © CodeProject, 1999-2013
Terms of Use
Layout: fixed | fluid