vs2012开发2dx2.2.5,如何输出log?

我在程序里面的cclog信息,在vs里面都看不到,请问这个怎么能把log给输出出来,要不调试程序,太痛苦了,呵呵,感谢啊~

CCLog即可。F5,打开输出窗口,即可看到。

我的输出窗口里面只能看到c#的log,看不到cclog里面的东西

找了一篇写的很详细,请参考:

http://xiaxveliang.blog.163.com/blog/static/297080342013683175570/

用这段代码替换掉你得main.cpp,然后就会有dos窗口了,在dos窗口下有输出。

#include "main.h"
#include "AppDelegate.h"
#include "CCEGLView.h"

USING_NS_CC;

// uncomment below line, open debug console
// #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

    // create the application instance
    AppDelegate app;
    CCEGLView* eglView = CCEGLView::sharedOpenGLView();
    eglView->setFrameSize(480, 320);

    int ret = CCApplication::sharedApplication()->run();

#ifdef USE_WIN32_CONSOLE
    FreeConsole();
#endif

    return ret;
}


```