Things still aren't working so well...
but I've assigned the button a command ID as you said, and I got the daft error about the bracket thing...
I swapped the ID...whatever with just a number so I had:
MyButton.idCommand=50000; (40000 ones are took...I checked)
cout<<"failed on the handle\n";
But it keeps failling there...