need help with CRegKey 
Author Message
 need help with CRegKey

Hi,

I need to get a data from a registry key for instance:
HKEY_LOCAL_MACHINE
   SOFTWARE
      Adobe
         CommonFiles
                "UsageCount" <- need this value

I have a key:
   CRegKey key;

Now Open the key:
   key.Open(HKEY_LOCAL_MACHINE, "SOFTWARE");
this runs OK
But:
   key.Open (HKEY_LOCAL_MACHINE,
         "SOFTWARE\\Adobe\\CommonFiles\\"UsageCount");
doesn't Run OK.

any help would be apprtiated.
Thank

Amer Khair



Fri, 11 Jun 2004 05:46:56 GMT  
 need help with CRegKey
Change it to

    key.Open (HKEY_LOCAL_MACHINE,
"SOFTWARE\\Adobe\\CommonFiles\\UsageCount");

    i.e; remove the double quotes in 'UsageCount'.

Cheers
Check Abdoul
-----------------


Quote:
> Hi,

> I need to get a data from a registry key for instance:
> HKEY_LOCAL_MACHINE
>    SOFTWARE
>       Adobe
>          CommonFiles
>                 "UsageCount" <- need this value

> I have a key:
>    CRegKey key;

> Now Open the key:
>    key.Open(HKEY_LOCAL_MACHINE, "SOFTWARE");
> this runs OK
> But:
>    key.Open (HKEY_LOCAL_MACHINE,
>          "SOFTWARE\\Adobe\\CommonFiles\\"UsageCount");
> doesn't Run OK.

> any help would be apprtiated.
> Thank

> Amer Khair



Fri, 11 Jun 2004 06:24:18 GMT  
 need help with CRegKey
Hi,

It also doesn't work.
any new sugestions.

thanks

Quote:
>-----Original Message-----
>Change it to

>    key.Open (HKEY_LOCAL_MACHINE,
>"SOFTWARE\\Adobe\\CommonFiles\\UsageCount");

>    i.e; remove the double quotes in 'UsageCount'.

>Cheers
>Check Abdoul
>-----------------



>> Hi,

>> I need to get a data from a registry key for instance:
>> HKEY_LOCAL_MACHINE
>>    SOFTWARE
>>       Adobe
>>          CommonFiles
>>                 "UsageCount" <- need this value

>> I have a key:
>>    CRegKey key;

>> Now Open the key:
>>    key.Open(HKEY_LOCAL_MACHINE, "SOFTWARE");
>> this runs OK
>> But:
>>    key.Open (HKEY_LOCAL_MACHINE,
>>          "SOFTWARE\\Adobe\\CommonFiles\\"UsageCount");
>> doesn't Run OK.

>> any help would be apprtiated.
>> Thank

>> Amer Khair

>.



Fri, 11 Jun 2004 18:12:17 GMT  
 need help with CRegKey
Hi,

I need to get a data from a registry key for instance:
HKEY_LOCAL_MACHINE
   SOFTWARE
      Adobe
         CommonFiles
                "UsageCount" <- need this value
I have a key:
   CRegKey key;
Now Open the key:
   key.Open(HKEY_LOCAL_MACHINE, "SOFTWARE");
this runs OK
But:
   key.Open (HKEY_LOCAL_MACHINE,
         "SOFTWARE\\Adobe\\CommonFiles\\UsageCount");
doesn't Run OK.

any help would be apprtiated.
Thanks

Amer Khair



Fri, 11 Jun 2004 18:17:46 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. HELP needed on CRegKey

2. HELP needed on CRegKey

3. CRegKey - need to write value

4. CRegKey::QueryStringValue buffer size on failure

5. ATL's CRegKey Deprecated?

6. CRegKey in an IE deskband causes Registry to LOCKUP

7. CRegKey fails on WinME install

8. ATL7 CRegKey QueryStringValue REG_EXPAND_SZ error

9. CRegKey: Registry access fail for Release MinSize build

10. Library that defines CRegKey

11. Enumerating the subkeys using CRegKey

12. Link error using CRegKey

 

 
Powered by phpBB® Forum Software