Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Help with Registry
Message
General information
Forum:
Visual C++
Category:
Other
Miscellaneous
Thread ID:
00639234
Message ID:
00639376
Views:
22
Hi!
The third parameter in QueryValue is DWORD*. And specify registry key without the last backslash:
cRegistro="SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\NetworkCards\\1";
if (nJol==0)
{
    DWORD dwCount = sizeof(cCode);
    oRegKey.QueryValue(cCode,_T("ProductName"),&dwCount);
}
You could also check the error code returned by QueryValue.

>Hi people!
>well i have a bit of problem that i might think that someone will
>come up with a solution.
>i Spend 1 day and half checking and searching information in www.codeguru.com found value information about the registry. i found many classes for work with registry. i found good one in :http://www.codeguru.com/system/CRegKey.shtml
>
>Now, i say that is very good because is done by Microsoft, but the reality is... i dont know how put to works!, i try with trial and error and searching information but i'm lost.
>
>i need do in VC++ for performance reasons, because the program is loading in the user login.
>
>this is my not working code:
>(Wizard generate a MFC EXE Dialog Based)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform