Search found 62 matches

by marcusbarnet
Sun Feb 16, 2020 9:59 pm
Forum: Database Related
Topic: WxWidgets 3.1, Windows, codeblocks and MySQL
Replies: 7
Views: 45

Re: WxWidgets 3.1, Windows, codeblocks and MySQL

I will try to check again wxsqlite3 and how to install it on windows. I see that it uses databases in .db format: I never used it so I do not know how to populate the tables, is there an utility like phpmyadmin to manage the database?
by marcusbarnet
Sun Feb 16, 2020 9:38 pm
Forum: Database Related
Topic: WxWidgets 3.1, Windows, codeblocks and MySQL
Replies: 7
Views: 45

Re: WxWidgets 3.1, Windows, codeblocks and MySQL

I'm creating the database from scratch so I can choose the architecture. I usually use Mysql with phpmyadmin but it's ok to use any other solution.

I checked wxSQLite3 but I wasnt able to use it correctly.

Is there any tutorial that can explain me how to install and use the wxdatabase?
by marcusbarnet
Sun Feb 16, 2020 7:58 pm
Forum: Database Related
Topic: WxWidgets 3.1, Windows, codeblocks and MySQL
Replies: 7
Views: 45

Re: WxWidgets 3.1, Windows, codeblocks and MySQL

I'm still looking on google, but it's very hard to find a good document/tutorial.
by marcusbarnet
Sun Feb 16, 2020 7:26 pm
Forum: Database Related
Topic: WxWidgets 3.1, Windows, codeblocks and MySQL
Replies: 7
Views: 45

WxWidgets 3.1, Windows, codeblocks and MySQL

Hi to all, I'm having lot of problems in finding a way to connect to a MySQl database by using WxWdigets on Windows. On Linux, I use mysql++ library and everything works fine, but I can't figure out how to do it under Windows. I don't need to use exactly the same library, I just need to be able to r...
by marcusbarnet
Sun Jan 26, 2020 7:19 pm
Forum: Compiler / Linking / IDE Related
Topic: fatal error: wx/setup.h: No such file or directory
Replies: 5
Views: 214

Re: fatal error: wx/setup.h: No such file or directory

I already tried to use the wizard to create a new project, but I get always the same error! During the wizard, it says me that "a matching debug configuration cannot be found in the Wxwidget directory you specified" What does it mean? I didn't have all these problems on Unix! windows is really crazy...
by marcusbarnet
Sun Jan 26, 2020 6:12 pm
Forum: Compiler / Linking / IDE Related
Topic: fatal error: wx/setup.h: No such file or directory
Replies: 5
Views: 214

fatal error: wx/setup.h: No such file or directory

I'm trying to setup the environment to use WxWidgets on Windows by using Codeblocks. (I can successfully use WxWidgets in Ubuntu, but I do not use Microsoft Windows very often so I'm having hard time to correctly setup everything). I followed this guide: https://wiki.wxwidgets.org/CodeBlocks_Setup_G...
by marcusbarnet
Sun Nov 03, 2019 9:45 pm
Forum: C++ Development
Topic: Refresh panels in wxnotebook
Replies: 8
Views: 488

Re: Refresh panels in wxnotebook

Your suggestion solved the problem, thank you!

Is that a problem which can occurs only with some compilers/systems or it is a common problem when you cross the headers?
by marcusbarnet
Sun Nov 03, 2019 7:26 pm
Forum: C++ Development
Topic: Refresh panels in wxnotebook
Replies: 8
Views: 488

Re: Refresh panels in wxnotebook

I'm having a problem and I can't understand why! I was changing my code to fit your suggestions, I tried to compile it and I get this error: In file included from /home/isola/Documents/Isola02/Isola02Main.h:15:0, from /home/isola/Documents/Isola02/Isola02Main.cpp:10: /home/isola/Documents/Isola02/fi...
by marcusbarnet
Sun Oct 27, 2019 8:07 pm
Forum: C++ Development
Topic: Refresh panels in wxnotebook
Replies: 8
Views: 488

Re: Refresh panels in wxnotebook

I declared: firstpanel *first; secondpanel *second; as global in Isola02Main.cpp and then I specified a function in Isola02Frame.cpp: void Isola02Frame::panel_refresh(){ first->errore->Hide(); first->tessera->Clear(); } //secondpanel.cpp void secondpanel::OnBitmapButton1Click(wxCommandEvent& event) ...
by marcusbarnet
Sun Oct 27, 2019 7:59 pm
Forum: C++ Development
Topic: Refresh panels in wxnotebook
Replies: 8
Views: 488

Re: Refresh panels in wxnotebook

what is the best solution to reset every single controls and every single variable? All the panels are created in: //isola02Main.cpp Isola02Frame::Isola02Frame(const wxString& title) : wxFrame(NULL, wxID_ANY, title) { wxInitAllImageHandlers(); // Create a top-level panel to hold all the contents of ...
by marcusbarnet
Sun Oct 27, 2019 5:59 pm
Forum: C++ Development
Topic: Refresh panels in wxnotebook
Replies: 8
Views: 488

Refresh panels in wxnotebook

What is the best method to refresh panels in wxnotebook? My application flow let the user navigate from panel 1 to panel 3, at the end of the procedure, the user can load a new operation starting from panel 1. I would like to reload the first panel by clearing all the forms and all the values previo...
by marcusbarnet
Sat Oct 26, 2019 7:27 pm
Forum: C++ Development
Topic: How to play and stop mp3 asynchronously
Replies: 14
Views: 754

Re: How to play and stop mp3 asynchronously

doublemax, thank you a lot! I follwed you suggestion and now it works. I used the same pointer you told me to add during the creation of the panels last Sunday and I moved the functions to the main frame. // main class class Isola02Frame : public wxFrame { public: Isola02Frame(const wxString& title)...
by marcusbarnet
Sat Oct 26, 2019 4:10 pm
Forum: C++ Development
Topic: How to play and stop mp3 asynchronously
Replies: 14
Views: 754

Re: How to play and stop mp3 asynchronously

I tried to compile it, but I receive lots of errors: g++ doc_libvlc_wx_player.cpp `wx-config --libs` `wx-config --cxxflags` `pkg-config --cflags gtk+-2.0 libvlc` `pkg-config --libs gtk+-2.0 libvlc` -o wx_player doc_libvlc_wx_player.cpp:14:14: fatal error: gtk/win_gtk.h: No such file or directory Fr...
by marcusbarnet
Sat Oct 26, 2019 11:58 am
Forum: C++ Development
Topic: How to play and stop mp3 asynchronously
Replies: 14
Views: 754

Re: How to play and stop mp3 asynchronously

Like i already explained a few times, it's bad to call a method from one panel from another panel. You'll always run into these kind of problem. Now panel2 needs to know that panel1 exists and it needs a pointer to it. These kind of dependencies should ring an alarm bell in your head. Use their par...