help CCMenuItemImage...

CCMenuItemImage *left = CCMenuItemImage::itemFromNormalImage(“left.png”, “left.png”, this, menu_selector(gameMain::checkBlock));

bool gameMain::checkBlock(int type) {

switch(type) {

case 0 : printf(“left”); break;

case 1 : printf(“right”); break;

case 2 : printf(“bottom”); break;

default : printf(“not value”); break;
}
}

output > not value…
but
CCMenuItemImage *left = CCMenuItemImage::itemFromNormalImage));
ERROR
> Lvalue required as unary ‘&’ operand

  1. You can not use printf() to print the log. Use CCLog instead.
  2. menu_selector(gameMain::checkBlock(0))
    gameMain::checkBlock(0) is not a pointer of function.

thank you!

So how to input parameter for call back function? please help me?

Sorry for my English! >_<