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