[haiku-commits] Re: r33474 - haiku/trunk/src/apps/haiku3d

On Wed, Oct 7, 2009 at 2:26 PM, Ryan Leavengood <leavengood@xxxxxxxxx> wrote:
>
> If you can send me a simple test app I could run it on my BeOS machine.

I wrote the following simple app:

-----------------------------
#include <Application.h>
#include <Window.h>

#include <stdio.h>

class TestApp : public BApplication {
        public:
                TestApp();
                ~TestApp();

                void MessageReceived(BMessage *message);
                void ReadyToRun();
                bool QuitRequested();
};

TestApp::TestApp()
        : BApplication("application/x-vnd.RJL-Tester")
{
}

TestApp::~TestApp()
{
}

void
TestApp::ReadyToRun()
{
        BWindow *win = new BWindow(BRect(100, 100, 500, 500), "Test",
B_TITLED_WINDOW, 0);
        win->Show();
}

void
TestApp::MessageReceived(BMessage *message)
{
        printf("MessageReceived, what = %x, app_activated = %x!\n",
message->what, '_ACT');
        BApplication::MessageReceived(message);
}

bool
TestApp::QuitRequested()
{
        return true;
}


int
main(int, char **)
{
        TestApp theApp;
        theApp.Run();
        return 0;
}
-----------------------------

I then compiled it on my BeOS machine with g++ -lbe -o Tester TestApp.cpp

When this was launched, it printed out that some messages were
received, and it did close when Deskbar's Close All was selected. Also
when I looked at it with FileTypes it was a single launch executable.

If this was not exactly what you guys wanted tested, let me know what
I should try instead.

-- 
Regards,
Ryan

Other related posts: