diff --git a/template/CCXAppWiz.vs/CCXAppWiz/Scripts/1033/default.js b/template/CCXAppWiz.vs/CCXAppWiz/Scripts/1033/default.js index f6ff7b351e..e11540cf7a 100644 --- a/template/CCXAppWiz.vs/CCXAppWiz/Scripts/1033/default.js +++ b/template/CCXAppWiz.vs/CCXAppWiz/Scripts/1033/default.js @@ -160,7 +160,7 @@ function AddConfigurations(proj, strProjectName) var CLTool = config.Tools('VCCLCompilerTool'); // Additional Inlcude Directories - var strAddIncludeDir = '.;.\\win32;..\\cocos2dx;..\\cocos2dx\\include;..\\cocos2dx\\platform\\win32\\third_party\\OGLES'; + var strAddIncludeDir = '.;.\\win32;.\\Classes;..\\cocos2dx;..\\cocos2dx\\include;..\\cocos2dx\\platform\\win32\\third_party\\OGLES'; if (wizard.FindSymbol('CCX_USE_BOX2D')) { strAddIncludeDir += ';..\\;..\\Box2D'; diff --git a/template/CCXAppWiz.vs/CCXAppWiz/Templates/1033/Classes/AppDelegate.cpp b/template/CCXAppWiz.vs/CCXAppWiz/Templates/1033/Classes/AppDelegate.cpp index eacf2fb81f..1bcb0203b1 100644 --- a/template/CCXAppWiz.vs/CCXAppWiz/Templates/1033/Classes/AppDelegate.cpp +++ b/template/CCXAppWiz.vs/CCXAppWiz/Templates/1033/Classes/AppDelegate.cpp @@ -47,10 +47,7 @@ bool AppDelegate::applicationDidFinishLaunching() CCScene * pScene = HelloWorld::scene(); - CCLayer * pLayer = CCLayer::node(); - pLayer->autorelease(); - pScene->addChild(pLayer); pDirector->runWithScene(pScene); return true; diff --git a/template/CCXAppWiz.vs/CCXAppWiz/Templates/1033/win32/main.cpp b/template/CCXAppWiz.vs/CCXAppWiz/Templates/1033/win32/main.cpp index d7385588cb..848ea590c8 100644 --- a/template/CCXAppWiz.vs/CCXAppWiz/Templates/1033/win32/main.cpp +++ b/template/CCXAppWiz.vs/CCXAppWiz/Templates/1033/win32/main.cpp @@ -1,5 +1,5 @@ #include "main.h" -#include "../AppDelegate.h" +#include "AppDelegate.h" HINSTANCE g_hInstance;