What's the proper use of CCString here?

I’m trying to do something very simple here with CCString and I just don’t understand how to use it.

in Objective C

    NSString *str;
    str = [NSString stringWithFormat:@"%i",int_team1trickscore];
    [_team1points setString:str];

    str = [NSString stringWithFormat:@"%i",int_team2trickscore];
    [_team2points setString:str];

In C++

    CCString *str;
    str->createWithFormat("%i",int_team1trickscore);
    _team1points->setString(str->getCString());

    str->createWithFormat("%i",int_team2trickscore);
    _team2points->setString(str->getCString());

The problem is, the code is bombing out at
_team1points->setString(str->getCString());

What’s the proper way of creating strings and setting the _team1points (a CCLabelTTF) text here?