#include "main.h"
#include "AppDelegate.h"
#include "CCEGLView.h"
#include "../Classes/SysFunc/SysFunc.h"
USING_NS_CC;
#define USE_WIN32_CONSOLE // 添加控制台宏定义
int APIENTRY _tWinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPTSTR lpCmdLine,
int nCmdShow)
{
UNREFERENCED_PARAMETER(hPrevInstance);
UNREFERENCED_PARAMETER(lpCmdLine);
#ifdef USE_WIN32_CONSOLE
AllocConsole();
freopen("CONIN$","r",stdin);
freopen("CONOUT$","w",stdout);
freopen("CONOUT$","w",stderr);
AppDelegate app;
CCEGLView* eglView = CCEGLView::sharedOpenGLView();
eglView->setViewName("XZMJ");
eglView->setFrameSize(SysFunc::getVisibleWidth(), SysFunc::getVisibleHeight());
return CCApplication::sharedApplication()->run();
#ifdef USE_WIN32_CONSOLE
FreeConsole();
#include "AppDelegate.h"
#include "CCEGLView.h"
#include "../Classes/SysFunc/SysFunc.h"
USING_NS_CC;
#define USE_WIN32_CONSOLE // 添加控制台宏定义
int APIENTRY _tWinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPTSTR lpCmdLine,
int nCmdShow)
{
UNREFERENCED_PARAMETER(hPrevInstance);
UNREFERENCED_PARAMETER(lpCmdLine);
#ifdef USE_WIN32_CONSOLE
AllocConsole();
freopen("CONIN$","r",stdin);
freopen("CONOUT$","w",stdout);
freopen("CONOUT$","w",stderr);
#endif
AppDelegate app;
CCEGLView* eglView = CCEGLView::sharedOpenGLView();
eglView->setViewName("XZMJ");
eglView->setFrameSize(SysFunc::getVisibleWidth(), SysFunc::getVisibleHeight());
return CCApplication::sharedApplication()->run();
#ifdef USE_WIN32_CONSOLE
FreeConsole();
#endif