c++ get registry key returns only one char

后端 未结 1 1934
春和景丽
春和景丽 2020-12-11 22:55

I\'m trying to retrieve a value of a key but i\'m only getting the first char of the value.. can anyone help?

my code:

void dealWithRegistry()
{
             


        
相关标签:
1条回答
  • 2020-12-11 23:21

    It is probably returning Unicode data and you are only printing the first character. A quick test of that would be to change the call to RegGetValueA.

    0 讨论(0)
提交回复
热议问题