c++ - Cocos2dx for Windows Phone : VS2012 raise bunch of errors -


i porting game based on cocos2dx ios windows phone 8. problem here after change fix errors of differences of api, got bunch of syntax errors, undeclared variable (although these variable declared). here sample code: .h file:

#ifndef __bomb__ #define __bomb__  #include "moveableobject.h"  typedef enum bombtype {     bombtypeelectrical,     bombtypeice,     bombtypechemical,     bombtypesmall,     bombtypebig } bombtype;  class bomb : public moveableobject { public:     bomb() {};     bomb(const char* szname);     virtual ~bomb() {};      void settype(int ntype) { m_ntype = ntype; };      int gettype() { return m_ntype; };     bool isexploding() { return m_bexploding; };     int bombtypeforname(const char* szname);      void expode();     void activate();     void finishexploding();  protected:     bool m_bexploding;     int m_ntype; };  #endif 

and error mark here:

bomb::bomb(const char* szname) : moveableobject(szname), m_bexploding(false) {     m_ntype = this->bombtypeforname(szname); } 

error 28 error c3861: 'm_bexploding': identifier not found had problem before? how solved these problems (there total 420 errors)?. appreciated. thanks.

i think errors because of different versions of cocos2d-x , wp8 port. there newer version of wp8 port available: http://www.cocos2d-x.org/news/98

you using old version 0.13. there lot of syntax (function signatures) changes , errors. try version 2.0 in link given. has same api cocos2d-x v2.1


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -