Sridhar
2009-08-14 10:42:01 UTC
Hi i tried to read registry values by using the following code. some part is
working fine.when i first openkey and read values from them and i closed the
key using CloseKey.it is working fine. after that i again openkey with some
other registry path.
but now it is not opening..please tell me what is the probleml.
CString baseReg = "SOFTWARE\\DataCollectionTool";
pReg.OpenKey(CRegistry::localMachine, baseReg);
----
---
pReg1.GetValue("TOOLID",appNodes[i].ToolId);
----
//this is working fine...i closed they key by using
pReg1.CloseKey();
pReg.CloseKey();
-------
------
//when i write the following code..it is not working.
CString baseRegUsb =
"SYSTEM\\CurrentControlSet\\Enum\\USB\\Vid_058f&Pid_6387";
pRegUsb.OpenKey(CRegistry::localMachine, baseRegUsb);
----
---
//this part not working and also it is not showing any error.
plese anybody help me what is the problem..it is really frustrating..
--------------------------------------------
working fine.when i first openkey and read values from them and i closed the
key using CloseKey.it is working fine. after that i again openkey with some
other registry path.
but now it is not opening..please tell me what is the probleml.
CString baseReg = "SOFTWARE\\DataCollectionTool";
pReg.OpenKey(CRegistry::localMachine, baseReg);
----
---
pReg1.GetValue("TOOLID",appNodes[i].ToolId);
----
//this is working fine...i closed they key by using
pReg1.CloseKey();
pReg.CloseKey();
-------
------
//when i write the following code..it is not working.
CString baseRegUsb =
"SYSTEM\\CurrentControlSet\\Enum\\USB\\Vid_058f&Pid_6387";
pRegUsb.OpenKey(CRegistry::localMachine, baseRegUsb);
----
---
//this part not working and also it is not showing any error.
plese anybody help me what is the problem..it is really frustrating..
--------------------------------------------