gpt4 book ai didi

c++ - 在 Visual Studio 的 cocos2d 中添加 Sprite 时出现未处理的异常

转载 作者:行者123 更新时间:2023-11-28 02:59:56 24 4
gpt4 key购买 nike

<分区>

Unhandled exception at 0x0096348B in HelloWorld.exe: 0xC0000005: Access violation reading location 0x00000000.

这是我在尝试使用我添加的 Sprite 时遇到的错误。

CCSprite *sprite = CCSprite::spriteWithFile("Untitled.png" );
sprite->setAnchorPoint(CCPointZero);
this->addChild(sprite, -1);

错误在第一行

感谢您的帮助。

我正在使用 Visual Studio 2013

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com