CCSprite null on win8 RTM

CCSprite* pSprite = CCSprite::spriteWithFile(“HelloWorld.png”,CCRect(0,0,50,50));

// position the sprite on the center of the screen
pSprite~~>setPosition);
pSprite~~>setAnchorPoint(ccp(0,0));
This is the demo’s code~but the log shows that the pSprite is null.and the picture is in the “assets” folder

this is the error info

  • pSprite 0x00000000 {m_nOpacity=? m_sColor={r=? g=? b=? } m_pobTextureAtlas=??? …} cocos2d::CCSprite *

I had the same issue, and I’m not sure why it couldn’t find the asset, but I used this project instead as a template and it doesn’t have the problem:

good luck

henry james wrote:

I had the same issue, and I’m not sure why it couldn’t find the asset, but I used this project instead as a template and it doesn’t have the problem:
>
https://github.com/lihex/SimpleGameCocos2dxWin8
>
good luck

ohhhhh.it works thank u