Salve a tutti, ho cercato della documentazione per le Object Windows Library ed ho trovato questo semplice programma che esegue una finestra che mostra una messagebox al click dell'utente sulla client area:
codice:
#include <owl\applicat.h>
#include <owl\framewin.h>

class MyApp : public TApplication
{public:
    MyApp() : TApplication(){}
    void InitMainWindow();
};
class MyWndw : public TFrameWindow
{public :
    MyWndw (TWindow *parent, const char
            far *title) :
    TFrameWindow (parent, title) { }
    protected:
    void EvLButtonDown (UINT,TPoint &point) ;
    DECLARE_RESPONSE_TABLE (MyWndw) ;
};
DEFINE_RESPONSE_TABLEl
  (MyWndw, TFrameWindow)
   EV_WM_LBUTTONDOWN,
END_RESPONSE_TABLE ;

void MyWndw: :EvLButtonDown (UINT, TPoint&)
{
    MessageBox ("Hello, World", "",MB_OK) ;
}
void MyApp: :InitMainWindow()
{
	 TFrameWindow *w =
	 new MyWndw(0, "Greeting") ;
	 w->Attr.X = 225; w->Attr.Y = 100;
	 w->Attr.W = 200; w->Attr.H = 225;
	 w->Attr.Style |= WS_VSCROLL;
	 SetMainWindow (wndw) ;
}

int OwlMain(int, char* [ ]  )
{
    return MyApp().Run();
}
Ho provato a compilarlo su Borland C++ 5.02, ma trova i seguenti errori:
codice:
Error:  NONAME00.CPP(20,21):Undefined symbol 'TMyPMF'
Error:  NONAME00.CPP(20,21):Statement missing ;
Error:  NONAME00.CPP(20,22):Expression syntax
Error:  NONAME00.CPP(21,19):Statement missing ;
Error:  NONAME00.CPP(23,13):Size of 'MyWndw' is unknown or zero
Error:  NONAME00.CPP(23,13):Declaration syntax error
Error:  NONAME00.CPP(40,1):Declaration missing ;
Error:  NONAME00.CPP(40,1):Compound statement missing }
Warn :  NONAME00.CPP(40,1):Function should return a value
Warn :  NONAME00.CPP(40,1):'MyWndw' is declared but never used
A cosa sono dovuti questi errori?

PS: uso questa libreria così antiquata per motivi scolastici!