CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: Access Registry

  1. #1
    Guest

    Access Registry

    I want to get the value of a string("Exchange") in the registry path HKEY_LOCAL_USER\\SOFTWARE\\Microsoft
    How can I access it ?


  2. #2
    Join Date
    Jul 1999
    Location
    Romania - Iasi
    Posts
    558

    Re: Access Registry

    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


  3. #3
    Join Date
    Jul 1999
    Location
    Romania - Iasi
    Posts
    558

    Re: Access Registry

    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


  4. #4
    Guest

    Re: Access Registry

    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.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured