Skip to content

Instantly share code, notes, and snippets.

@fodinabor
Created April 28, 2014 19:52
Show Gist options
  • Save fodinabor/11382263 to your computer and use it in GitHub Desktop.
Save fodinabor/11382263 to your computer and use it in GitHub Desktop.
Debug Console
#include <Polycode.h>
#include "HelloPolycodeApp.h"
#include "PolycodeView.h"
#include "windows.h"
using namespace Polycode;
int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
{
#if defined(_MSC_VER) && defined(_DEBUG)
PolycodeView *view = new PolycodeView(hInstance, nCmdShow, L"Polycode Example",false,true);
#else
PolycodeView *view = new PolycodeView(hInstance, nCmdShow, L"Polycode Example");
#endif
HelloPolycodeApp *app = new HelloPolycodeApp(view);
MSG Msg;
do {
if(PeekMessage(&Msg, NULL, 0,0,PM_REMOVE)) {
TranslateMessage(&Msg);
DispatchMessage(&Msg);
}
} while(app->Update());
return Msg.wParam;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment