#include “cocos2d.h”
#include “cocos-ext.h”
USING_NS_CC_EXT;
加上public TableViewDelegate, public TableViewDataSource就报错提示打不开extensions/ExtensionExport.h这个,问题这文件明明存在.
网上的例子貌似都这么写看着也没问题啊.我这怎么就死活都不行呢. 我用的是WIN7 + VS2013
class HelloWorld : public cocos2d::Layer, public TableViewDelegate, public TableViewDataSource
{
public:
// there’s no ‘id’ in cpp, so we recommend returning the class instance pointer
static cocos2d::Scene* createScene();
// Here's a difference. Method 'init' in cocos2d-x returns bool, instead of returning 'id' in cocos2d-iphone
virtual bool init();
// a selector callback
void menuCloseCallback(cocos2d::Ref* pSender);
// implement the "static create()" method manually
CREATE_FUNC(HelloWorld);
};