1 #include <stdio.h> 2 #include <string.h> 3 4 #include <Application.h> 5 #include <Catalog.h> 6 #include <Message.h> 7 8 #include "ObjectWindow.h" 9 10 #undef B_TRANSLATION_CONTEXT 11 #define B_TRANSLATION_CONTEXT "Playground" 12 13 14 // main 15 int 16 main(int argc, char** argv) 17 { 18 BApplication* app = new BApplication("application/x-vnd.Haiku-Playground"); 19 20 BRect frame(50.0, 50.0, 600.0, 400.0); 21 BWindow* window = new ObjectWindow(frame, B_TRANSLATE_SYSTEM_NAME("Playground")); 22 23 window->Show(); 24 25 app->Run(); 26 27 delete app; 28 return 0; 29 } 30