Created
April 28, 2014 19:52
-
-
Save fodinabor/11382263 to your computer and use it in GitHub Desktop.
Debug Console
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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