Hi all,
I'm working with
CODEBLOCKS 1.0RC2
wxWidgets 2.6.2
When i create a wxFrame, it's work (compilation and execution) correctly
But if i create a wxDialog, the compilation return 0 error but the execution of exe file send a messagebox :
The entry point _ZN8wxDialog17MSWProcessMessageEP6tagMSG not found in lib wxmsw26_gcc_cb.dll
Here the code
#include <wx/wx.h>
class MainApp:public wxApp //declaration d'application - conteneur de fenêtre
{
public:
virtual bool OnInit();
};
class MainClass:public wxDialog //declaration de fenêtre - conteneur des éléments de fenêtre
{
public:
MainClass(const wxString &title,const wxPoint &pos,const wxSize &size);
};
IMPLEMENT_APP(MainApp) //creation de l'instance de l'application
bool MainApp::OnInit()
{
MainClass *window=new MainClass("Titre de fenêtre",wxPoint(250,250),wxSize(350,250));
window->Show(true);
SetTopWindow(window);
return true;
}
MainClass::MainClass(const wxString &title,const wxPoint &pos,const wxSize &size)
:wxDialog((wxDialog*)NULL,-1,title,pos,size)
{
}
If anybody knows this problem.....
Thanks for helping