Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Avoid Flickering: Progress Dialog but problem

Status
Not open for further replies.

Huskey

Vendor
Aug 23, 2002
53
GB
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!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top