• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 785
  • Last Modified:

Conditional Breakpoint CString Visual Studio 6.0

How to define a conditional breakpoint on a CString variable under Visual Studio 6.0
Tried this -> strcmp(variable,"HANDLING" ) == 0 but it doesn't work.

Any ideas?

Thanks in advance
Martin
0
martinmoessner
Asked:
martinmoessner
  • 2
1 Solution
 
AxterCommented:
Hi martinmoessner,
Just use == comparsion operator.

if (variable == "HANDLING")
{
}

David Maisonave :-)
Cheers!
0
 
AxterCommented:
CString also has a Compare member function.
variable.Compare("HANDLING") == 0
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now