ccTouch for cocos2d-x 2.0

I have try to use the touch event to do the drag and drop function.
But i have issue about the touch event.
I have using the following code to control touch event. It is not response when i run it.

HelloWorldScene.ccp

CCScene* HelloWorld::scene()
{
CCScene scene = CCScene::node;
HelloWorld
layer = HelloWorld::node();
scene~~>addChild;
return scene;
}
>
bool HelloWorld::init
{
size = CCDirector::sharedDirector~~>getWinSize;
if )
{
return false;
}
>
>
CCMenuItemImage pCloseItem = CCMenuItemImage::itemWithNormalImage );
pCloseItem~~>setPosition);
>
>
CCMenu* pMenu = CCMenu::menuWithItems;
pMenu~~>setPosition;
>
this~~>addChild;
this~~>setIsTouchEnabled;
>
return true;
}
>
void HelloWorld::registerWithTouchDispatcher
{
CCDirector
pDirector = CCDirector::sharedDirector;
}
>
>
>
bool HelloWorld::ccTouchBegan {
>
CCSprite* Level2_pSprite = CCSprite::spriteWithFile;
Level2_pSprite~~>setPosition);
this~~>addChild(Level2_pSprite, 0);
return true;
}
>
void HelloWorld::ccTouchMoved (CCTouch pTouch, CCEventpEvent){
>
}
>
void HelloWorld::ccTouchEnded (CCTouch pTouch, CCEventpEvent){
>
}

HelloWorldScene.h

#include “cocos2d.h”
#include “SimpleAudioEngine.h”
>
class HelloWorld : public cocos2d::CCLayer
{
public:
>
// Here’s a difference. Method ‘init’ in cocos2d-x returns bool, instead of returning ‘id’ in cocos2d-iphone
virtual bool init();
>
// there’s no ‘id’ in cpp, so we recommand to return the exactly class pointer
static cocos2d::CCScene* scene();
>
virtual void registerWithTouchDispatcher();
virtual bool ccTouchBegan (cocos2d::CCTouch pTouch, cocos2d::CCEventpEvent);
virtual void ccTouchMoved (cocos2d::CCTouch pTouch, cocos2d::CCEventpEvent);
virtual void ccTouchEnded (cocos2d::CCTouch pTouch, cocos2d::CCEventpEvent);
>
>
virtual void menuCloseCallback(CCObject* pSender);
// implement the “static node()” method manually
LAYER_NODE_FUNC(HelloWorld);
};
>
#endif // HELLOWORLD_SCENE_H