application/main.c

changeset 517
ac867877999e
parent 516
4b31c74666d7
parent 513
a4e0ef98a8b4
child 518
45ed276ba7a4
equal deleted inserted replaced
516:4b31c74666d7 517:ac867877999e
779 779
780 #endif 780 #endif
781 781
782 #ifdef UI_WIN32 782 #ifdef UI_WIN32
783 783
784 int main(int argc, char **argv) { 784 void application_startup(UiEvent *event, void *data) {
785
786 }
787
788 int WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd) {
789 ui_init("app1", 0, NULL);
790 ui_onstartup(application_startup, NULL);
791
792 ui_main();
793
785 return 0; 794 return 0;
786 } 795 }
787 796
788 #endif 797 #endif
798

mercurial