Can not run particle effect on BB10

I am not able to execute following code in BB10 momentics IDE for particle effect

CCParticleFireworks *fireworks=CCParticleFireworks::create();
fireworks~~>setPosition);
fireworks~~>setDuration(60);
this->addChild(fireworks,5);

The same code run in XCODE