T***@gmail.com
2005-11-11 09:03:40 UTC
Hey,
I'm on Windows XP and use .NET 2003. I would like to create a wxWidgets
application that also has a console. So I can output (using printf).
I tried the following code:
//=================================================
#include <wx/wx.h>
class Application : public wxApp
{
public:
virtual bool OnInit(void);
};
IMPLEMENT_APP_NO_MAIN(Application)
bool Application::OnInit()
{
wxFrame *testframe;
testframe = new wxFrame(NULL,wxID_ANY,"My Window",wxPoint(30,30));
testframe->Show();
printf("Does this work?");
return true;
}
int main( int argc, char** argv )
{
wxEntry(argc,argv);
return 0;
}
//=================================================
This code crashes upon creation of the wxFrame. Is there something I'm
doing wrong? Is this even possible? How? :-)
Thanks,
Timothy
I'm on Windows XP and use .NET 2003. I would like to create a wxWidgets
application that also has a console. So I can output (using printf).
I tried the following code:
//=================================================
#include <wx/wx.h>
class Application : public wxApp
{
public:
virtual bool OnInit(void);
};
IMPLEMENT_APP_NO_MAIN(Application)
bool Application::OnInit()
{
wxFrame *testframe;
testframe = new wxFrame(NULL,wxID_ANY,"My Window",wxPoint(30,30));
testframe->Show();
printf("Does this work?");
return true;
}
int main( int argc, char** argv )
{
wxEntry(argc,argv);
return 0;
}
//=================================================
This code crashes upon creation of the wxFrame. Is there something I'm
doing wrong? Is this even possible? How? :-)
Thanks,
Timothy