Home > Software engineering >  On cstrings CtrlList: : GetItemText return values and cstrings comparison problems
On cstrings CtrlList: : GetItemText return values and cstrings comparison problems

Time:09-30

I initialize an object cstrings, cstrings b (" approved "); And then in a list control with GetItemText returns a list of cstrings object, content is "approved", in theory the two objects should be the same, but the two cstrings didn't match

CodePudding user response:

Direct print two objects respectively, and then use STRCMP try to compare

CodePudding user response:

TRACE out look, isn't it much more behind the final syllable, such as carriage return line breaks

CodePudding user response:

How do you match the two string
?If (STRCMP (str1, str2)==0)
{
//equal
}
The else
{
//range
}

CodePudding user response:

How do you more string
It can't compare with integer

CodePudding user response:

No code, no truth
  • Related