wxWidgets question

Please support our C++ advertiser: Intel Parallel Studio Home
Thread Solved

Join Date: Jul 2008
Posts: 111
Reputation: clutchkiller is an unknown quantity at this point 
Solved Threads: 1
clutchkiller's Avatar
clutchkiller clutchkiller is offline Offline
Junior Poster

wxWidgets question

 
0
  #1
Mar 31st, 2009
  1.  
  2. #include <wx/wx.h>
  3.  
  4. class Hello : public wxApp
  5. {
  6. public:
  7. virtual bool OnInit();
  8. };
  9.  
  10. IMPLEMENT_APP(Hello)
  11.  
  12. bool Hello::OnInit()
  13. {
  14. wxFrame *frame = new wxFrame(NULL, -1, _T("Hello"), wxPoint(60, 70), wxSize(500, 600));
  15.  
  16. frame -> show(true);
  17.  
  18. SetTopWindow(frame);
  19.  
  20. return true;
  21. }


C:\Documents and Settings\Levi\Desktop\C+++\Makefile.win [Build Error] exe: *** [Output/MingW/Project1.exe] Error 1

Why do i get this error when i try to compile a simple wxFrame app in wxDev-cpp

thanks

Edit:


Well, im an idiot, i didnt have my source file saved lol. But the new question is, my compiler says show is not a member of wxFrame, so how am i supposed to show the actual window?
Last edited by clutchkiller; Mar 31st, 2009 at 6:14 am.
>That confuses me =(
Get used to it. Good programmers are in a constant state of confusion.
>Looks like i have some quasi specifics to investigate! Up Up And AWAY!
Reply With Quote Quick reply to this message  
Join Date: Dec 2007
Posts: 360
Reputation: jencas is just really nice jencas is just really nice jencas is just really nice jencas is just really nice jencas is just really nice 
Solved Threads: 69
jencas jencas is offline Offline
Posting Whiz

Re: wxWidgets question

 
0
  #2
Mar 31st, 2009
frame -> Show(true);
If you are forced to reinvent the wheel at least try to invent a better one!

Please use code tags - Please mark solved threads as solved
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 111
Reputation: clutchkiller is an unknown quantity at this point 
Solved Threads: 1
clutchkiller's Avatar
clutchkiller clutchkiller is offline Offline
Junior Poster

Re: wxWidgets question

 
0
  #3
Mar 31st, 2009
o wow, thank you that worked
>That confuses me =(
Get used to it. Good programmers are in a constant state of confusion.
>Looks like i have some quasi specifics to investigate! Up Up And AWAY!
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC