Hi Dot Squid, the default calling convention in Visual Studio 2012 is ‘__cdecl (/Gd)’ so we can rule that out as an issue.
I did some Googling on CCRemoveSelf and got the CCLabelTTF to remove itself after a delayed time. So the code is now working as I wanted it.
Thank you again for your help and quick response.
Here is the working code, in case anyone else is trying to do the same. Googling for help on this topic was not giving me any good sample code. Most of it was old, in complete or for objective-c:
void Test_SBBallMgr::AddTestLabel( const char *labelString )
CCLabelTTF *lbl = CCLabelTTF::create(labelString, "Arial", 18);
lbl->setAnchorPoint( ccp(0,0) );
lbl->setPosition( ccp(10, 500) );
//Function call to remove ccLabel after two seconds
CCDelayTime *delay2Secs = CCDelayTime::create(2);
CCSequence *actions = CCSequence::create(delay2Secs, CCRemoveSelf::create(), NULL);