My application compiles and runs perfectly under Linux/GTK+2. I'm trying to make it run on Windows 98. I compiled wxWidgets 2.4.2 using Cygwin/g++ 3.3.3. My app compiles with no errors/warnings, but when I run it, it behaves oddly. I create a wxSplashScreen with timeout, and it just doesn't close. It stays there forever. And the main window does the same. I have to kill the application to close all the frames.
The wxWidgets samples compile and run with no problems, so there's something wrong with my code... but I just can't find the error.
I have reduced the code to a bare minimum:
Code: Select all
#include "wx/wx.h"
class TpApp: public wxApp
{
virtual bool OnInit();
};
IMPLEMENT_APP(TpApp)
bool TpApp::OnInit()
{
wxMessageBox("Hello", "Hello");
return TRUE;
}
Is there anything wrong in this code?
Thanks for your help,
Diego Essaya