I got a problem when trying to create a progress dialog box. To avoid flickering, I have added this line:
// Update dialog text, avoiding flickering.
if (!text.IsEmpty()) {
if (text != progressdialog_->GetStatus())
progressdialog_->SetStatus(text.GetBuffer());
where text is defined as const String &text.
The error message: -
Error C2678: binary '!=' : no operator defined which takes a left-hand operand of type 'const class String' (or there is no acceptable conversion)
Anything wrong with my programming? Please advise. Thanks!
// Update dialog text, avoiding flickering.
if (!text.IsEmpty()) {
if (text != progressdialog_->GetStatus())
progressdialog_->SetStatus(text.GetBuffer());
where text is defined as const String &text.
The error message: -
Error C2678: binary '!=' : no operator defined which takes a left-hand operand of type 'const class String' (or there is no acceptable conversion)
Anything wrong with my programming? Please advise. Thanks!