Click to See Complete Forum and Search --> : Access Registry


July 23rd, 1999, 06:09 AM
I want to get the value of a string("Exchange") in the registry path HKEY_LOCAL_USER\\SOFTWARE\\Microsoft
How can I access it ?

Burlacu Ovidiu
July 23rd, 1999, 06:25 AM
Try this:

char path[100];
DWORD w = 100;

key.Open(HKEY_LOCAL_USER,"SOFTWARE\\Microsoft");
key.QueryValue(path, "Exchange", &w);





Let me know if this help you

Burlacu Ovidiu
July 23rd, 1999, 06:26 AM
Try this:

CRegKey key;
char path[100];
DWORD w = 100;

key.Open(HKEY_LOCAL_USER,"SOFTWARE\\Microsoft");
key.QueryValue(path, "Exchange", &w);





Let me know if this help you

July 24th, 1999, 03:53 AM
hi,
Thanx for ur code. But I couldn't use it since it is giving me linker errors as unresolved external symbols for the functions. Please tell me how to use it.

Regards,
Partha.