Author Topic: Windows Project Wizard for wxWidgets  (Read 3746 times)

Offline Lanny

  • Single posting newcomer
  • *
  • Posts: 5
Windows Project Wizard for wxWidgets
« on: February 26, 2025, 11:08:03 pm »
I teach using Code::Blocks and I have two classes each semester for approximately 200 students total.

One class is C++ and they compile and then use wxWidgets as the Windows API.  The students use wxWidgets for each week's assignments.

wxWidgets is up to 3.2.6 for MinGW.  But the Code::Blocks project wizard stops at 3.1.x.

I have just updated the instructions by having them manually change the project build options to change from libwxmsw31u.a set by the wizard to libwxmst32u.a so the projects can build successfully.

Isn't it about time to upgrade the project wizard?

The linux version goes up version 3.3.x.

Really?

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1716
Re: Windows Project Wizard for wxWidgets
« Reply #1 on: February 27, 2025, 09:44:34 am »
Nightly builds allow 3.2 since 2022-01-05 and 3.3 since 2022-11-09. You can use the last (just expand the three ZIP files in a folder) or copy wizard.script to the 20.03 folder. The first option is better, as it fixes some bugs and adds new features.

Offline Lanny

  • Single posting newcomer
  • *
  • Posts: 5
Re: Windows Project Wizard for wxWidgets
« Reply #2 on: February 27, 2025, 02:00:38 pm »
These are beginning students so they need to be able to use the auto-install setup.exe.

Also each semester the nightly builds would be different.

The best path for me is to have them change the build option for the correct library than having them download a zip file and unzip into Windows.

Thank you for your input.

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1716
Re: Windows Project Wizard for wxWidgets
« Reply #3 on: February 27, 2025, 02:11:13 pm »
Then, overwriting the script with this after the initial setup can be an additional lesson.

Offline Lanny

  • Single posting newcomer
  • *
  • Posts: 5
Re: Windows Project Wizard for wxWidgets
« Reply #4 on: February 28, 2025, 12:37:53 am »
Thanks for providing the modified script.

I tried to play with it, but it was not a simple single change.

I will work with this.

Offline PB

  • Multiple posting newcomer
  • *
  • Posts: 66
Re: Windows Project Wizard for wxWidgets
« Reply #5 on: February 28, 2025, 08:23:43 pm »
I tried to play with it, but it was not a simple single change.

IMO, instead actually overwriting the file, you may be better off putting into into the user folder. See the Installation part here, in my modification of the wizard for C::B 20.03: https://github.com/PBfordev/wxpbguide/tree/master/cb/wizard

Offline Lanny

  • Single posting newcomer
  • *
  • Posts: 5
Re: Windows Project Wizard for wxWidgets
« Reply #6 on: March 01, 2025, 02:39:09 pm »
Thanks for the information.

I already have the wxPBGuide linked as reference for the students.

This will just bring it all together.

Herman Watson

Offline Lanny

  • Single posting newcomer
  • *
  • Posts: 5
Re: Windows Project Wizard for wxWidgets
« Reply #7 on: March 03, 2025, 07:14:04 pm »
Just one more follow-up.

Start to create a new project.

Right click on the wxWidgets wizard option, you can edit the wizard directly.

Go to the github wizard.script source and load the raw file to the clipboard.
https://github.com/PBfordev/wxpbguide/blob/master/cb/wizard/wizard.script

Back to editing the wizard, select/delete all the old code, then paste the new raw code from the clipboard. 

Save it.  That updates the wizard with the new content.