Conditional Breakpoint CString Visual Studio 6.0

Posted on 2005-04-20
Last Modified: 2013-11-20
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
Question by:martinmoessner
    LVL 30

    Expert Comment

    Hi martinmoessner,
    Just use == comparsion operator.

    if (variable == "HANDLING")

    David Maisonave :-)
    LVL 30

    Accepted Solution

    CString also has a Compare member function.
    variable.Compare("HANDLING") == 0

    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    Join & Write a Comment

    Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
    If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
    This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
    This video discusses moving either the default database or any database to a new volume.

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now