#include "main.h" #include "dialog.h" IMPLEMENT_APP(MyApp) bool MyApp::OnInit() { wxImageHandler * pngLoader = new wxPNGHandler(); wxImage::AddHandler(pngLoader); Dialog *d = new Dialog((wxWindow *)NULL); d->Show(true); return true; }