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.
//Here is the line (note, opening the key is ERROR_SUCCESS):
error_num = key.QueryValue(lpStringVal
//dwStringSize is 39 (the correct number)
//but lpStringVal is empty.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER