Link to home
Start Free TrialLog in
Avatar of xxchange
xxchange

asked on

Error 234 with CRegKey. Empty String values.

When I use CRegKey.QueryValue I get the correct number of letters in the string, but my LPTSTR is always empty. The error that is returned is 234 which is ERROR_MORE_DATA. What does this mean? And why does it only do half of what it's supposed to do?

//Here is the line (note, opening the key is ERROR_SUCCESS):
error_num = key.QueryValue(lpStringVal, "LocalService", &dwStringSize);

//dwStringSize is 39 (the correct number)
//but lpStringVal is empty.
ASKER CERTIFIED SOLUTION
Avatar of dirty_dog
dirty_dog

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of xxchange
xxchange

ASKER

Thanks alot. Worked like a charm. You rock.