| | |
wxWidgets question
Please support our C++ advertiser: Intel Parallel Studio Home
Thread Solved |
c++ Syntax (Toggle Plain Text)
#include <wx/wx.h> class Hello : public wxApp { public: virtual bool OnInit(); }; IMPLEMENT_APP(Hello) bool Hello::OnInit() { wxFrame *frame = new wxFrame(NULL, -1, _T("Hello"), wxPoint(60, 70), wxSize(500, 600)); frame -> show(true); SetTopWindow(frame); return true; }
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!
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!
•
•
Join Date: Dec 2007
Posts: 360
Reputation:
Solved Threads: 69
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
Please use code tags - Please mark solved threads as solved
![]() |
Similar Threads
- WX.ID - Anywhere to get list? (Python)
- C module that uses wxPython (Python)
- Free C++ software (C++)
- SDL_toypiano (C++)
- XRCed (Python)
- Dummy Question (Python)
- hi.. SiR/MaAm, Would U pLEase ProviDe me A LinuX WxWidGEts Installer Or DOwnload Site (C)
- C++ in wxWidgets (C++)
- Having trouble with library in dev-c++ (wxWindows) (C++)
Other Threads in the C++ Forum
- Previous Thread: Help with header file
- Next Thread: Find suitable equation for given data...
| Thread Tools | Search this Thread |
Tag cloud for C++
api application array arrays based beginner binary bmp c++ c/c++ calculator char char* class classes code coding compile compiler console conversion convert count data database delete deploy developer display dll dynamiccharacterarray email encryption error file format forms fstream function functions game generator givemetehcodez graph homeworkhelp iamthwee ifstream image input int java lib list loop looping loops map math matrix memory multiple newbie news number numbertoword output pointer problem program programming project python random read recursion recursive reference return rpg simple sorting spoonfeeding string strings struct template templates text tree url variable vector video visual visualstudio win32 windows winsock wordfrequency wxwidgets





