•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the C++ section within the Software Development category of DaniWeb, a massive community of 397,771 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,518 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C++ advertiser:
Views: 5024 | Replies: 11
![]() |
•
•
Join Date: Apr 2004
Posts: 555
Reputation:
Rep Power: 6
Solved Threads: 6
Hello,
I am using dev-c++ on a windows computer. I download a gui package off of the bloodshed dev site. I installed and everything seem to work. I was making a simple gui off of this tutorial I found online that used the library. The library is wxWindows. Here is the code of the header file and of the main file.
The header file (base.h)
the main program (base.cpp)
I am using dev-c++ on a windows computer. I download a gui package off of the bloodshed dev site. I installed and everything seem to work. I was making a simple gui off of this tutorial I found online that used the library. The library is wxWindows. Here is the code of the header file and of the main file.
The header file (base.h)
#ifndef __BASE_H
#define __BASE_H
class MainApp: public wxApp
{
public:
virtual bool OnInit();
};
class MainFrame: public wxFrame
{
public:
MainFrame(const wxString &title, const wxPoint &pos, const wxSize &size);
};
#endif the main program (base.cpp)
#include <wx/wxprec.h>
#ifndef WX_PRECOMP
#include <wx/wx.h>
#endif
#include <base.h>
IMPLEMENT_APP(MainApp)
bool MainApp::OnInit()
{
MainFrame *MainWin = new MainFrame("Hello, World!", wxDefaultPosition,
wxSize(300, 200));
MainWin->Show(TRUE);
SetTopWindow(MainWin);
return TRUE;
}
MainFrame::MainFrame(const wxString &title, const wxPoint &pos, const wxSize &size)
:wxFrame((wxFrame *) NULL, -1, title, pos, size)
{
//this is not needed right now. From what i know this does the controls of the program, and it was not needed for a simple window.
}•
•
Join Date: Oct 2004
Location: Mojave Desert
Posts: 2,414
Reputation:
Rep Power: 9
Solved Threads: 173
What is your question?
Are you using the wxWidgets IDE for Dev-Cpp?
If not, check:
http://wxdsgn.sourceforge.net/
This IDE turns Dev-Cpp into the closest free thing to Visual C++.
Are you using the wxWidgets IDE for Dev-Cpp?
If not, check:
http://wxdsgn.sourceforge.net/
This IDE turns Dev-Cpp into the closest free thing to Visual C++.
May 'the Google' be with you!
•
•
Join Date: Apr 2004
Posts: 555
Reputation:
Rep Power: 6
Solved Threads: 6
No, I download and installed wxWindows. It was a package for dev-c++, and it is a GUI library. When I tried to compile the program a lot of errors came up. I was asking if anyone who used or is using wxWindow can help me make sure the compiler can compile the program. I am not using wxWidget, btw what is that?
•
•
Join Date: Oct 2004
Location: Mojave Desert
Posts: 2,414
Reputation:
Rep Power: 9
Solved Threads: 173
•
•
•
•
Originally Posted by Dark_Omen
No, I download and installed wxWindows. It was a package for dev-c++, and it is a GUI library. When I tried to compile the program a lot of errors came up. I was asking if anyone who used or is using wxWindow can help me make sure the compiler can compile the program. I am not using wxWidget, btw what is that?
http://wxwidgets.org/
May 'the Google' be with you!
•
•
Join Date: Oct 2004
Location: Mojave Desert
Posts: 2,414
Reputation:
Rep Power: 9
Solved Threads: 173
That reminds me of the days when I installed Delphi 1.0 on my computer. It was a heck of a learning curve. This idea of RAD programming was later copied by VB and VC. If you have any experience with these, then you know what to do with the wxWidget IDE.
BTW, they do have a forum to ask questions:
BTW, they do have a forum to ask questions:
http://www.solidsteel.nl/users/wxwidgets/viewforum.php?f=19&sid=684b4abb463a3d085c5ab463e17473ea
May 'the Google' be with you!
•
•
Join Date: Apr 2004
Posts: 555
Reputation:
Rep Power: 6
Solved Threads: 6
Well, I found a solution to my problem. When you install the package in dev C++, you have to go to new project, then you go to the gui tab and open up the wxWindows template. Another thing that can be done is to download the wx-Dev C++ which has everything set up already and has a visual building program built in, that you can creat and then you can add code to the buttons and everything else in the program.
•
•
Join Date: Oct 2004
Location: Mojave Desert
Posts: 2,414
Reputation:
Rep Power: 9
Solved Threads: 173
•
•
•
•
Originally Posted by Dark_Omen
Well, I found a solution to my problem. When you install the package in dev C++, you have to go to new project, then you go to the gui tab and open up the wxWindows template. Another thing that can be done is to download the wx-Dev C++ which has everything set up already and has a visual building program built in, that you can creat and then you can add code to the buttons and everything else in the program.
May 'the Google' be with you!
•
•
Join Date: Apr 2004
Posts: 555
Reputation:
Rep Power: 6
Solved Threads: 6
Yeah, after I figured download the wxWindows with dev-c++, I was looking at my original code and found some mistakes. I hate the mistakes that are not always obvisous. wxWindows is pretty good from what i have done so far (altough it was tricky to install and make it work). BTW, I have heard about c# but I dont exactly know what it is about, can you possibly tell me about it.
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb C++ Marketplace
Other Threads in the C++ Forum
- Previous Thread: Selecting options
- Next Thread: illegal else without matching if?



Linear Mode