Author Topic: Can't start a project due to some unknown problems  (Read 5662 times)

Offline Mvice21

  • Single posting newcomer
  • *
  • Posts: 5
Can't start a project due to some unknown problems
« on: July 05, 2021, 06:16:51 pm »
I have just installed "codeblocks-20.03mingw-setup.exe" on Windows 10 under 'G:\CodeBlocks'. My C: is occupied and have little space. I also have Microsoft Visual Studio 2019 IDE which has C++ compiler. But I want to create windows forms and to write code for it. Visual Studio offers me C# for this. I don't want C#. I want C++. So I try Code::Blocks.

I have successfully installed it onto SSD. I launched it and tried to start Win32 GUI project. As soon as I pressed 'Finish' in the wizard the program reported me an error:




What's going on here? Why can't I start it?
« Last Edit: July 05, 2021, 06:32:19 pm by Mvice21 »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Can't start a project due to some unknown problems
« Reply #1 on: July 05, 2021, 06:27:14 pm »
What path have you selected as the output for the project?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline Mvice21

  • Single posting newcomer
  • *
  • Posts: 5
Re: Can't start a project due to some unknown problems
« Reply #2 on: July 05, 2021, 06:33:14 pm »
path_1:

path_2:


Do I have to select strict file path? Here: Link it says that I don't have to type any specific path.
« Last Edit: July 05, 2021, 06:39:06 pm by Mvice21 »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Can't start a project due to some unknown problems
« Reply #3 on: July 05, 2021, 06:43:40 pm »
Set something valid in the "folder to create the project in" field and it will work.

Interesting:
1. why "next" is enabled in this case.
2. why you're ignoring all the text on this page and pressing blindly next :)
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline Mvice21

  • Single posting newcomer
  • *
  • Posts: 5
Re: Can't start a project due to some unknown problems
« Reply #4 on: July 05, 2021, 06:48:43 pm »
I have selected a folder into which to put files. Now it works. Ok.
2. I ignored it because in Here it says that it is enough to just enter project name and to press next.

In prior dialog window I chose "dialog based" project type.

Offline Mvice21

  • Single posting newcomer
  • *
  • Posts: 5
Re: Can't start a project due to some unknown problems
« Reply #5 on: July 05, 2021, 06:51:17 pm »
Tell me, oBFusCATed, is "Win32 GUI project" the right project if I want to create special window, to put there memo1 text field, buttons, radio boxes, checkboxes etc.. ? How to work with windows forms? What type of project to start?
« Last Edit: July 05, 2021, 07:28:00 pm by Mvice21 »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Can't start a project due to some unknown problems
« Reply #6 on: July 05, 2021, 07:50:00 pm »
What do you mean by "windows forms"? The official API behind this name is a C#/.net based one (and probably already deprecated and replaced by many others).
If you want to make a GUI application using the Win32 API, I guess the project type you're currently using is fine. :)
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline Mvice21

  • Single posting newcomer
  • *
  • Posts: 5
Re: Can't start a project due to some unknown problems
« Reply #7 on: July 06, 2021, 01:37:47 pm »
There is a way to use "gooey" GUI in a C++ using wxWidgets framework. One amateur is showing how to use it in MS Visual Studio: https://www.youtube.com/watch?v=FOIbK4bJKS8

Isn't it the same in CodeBlocks? I saw wxWidgets icon in projects wizard menu.

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1553
Re: Can't start a project due to some unknown problems
« Reply #8 on: July 06, 2021, 01:58:19 pm »
You can use the wxWidgets project wizard and then wxSmith to create your application, but before you must download the binary wxWidgets library (if it exists for your compiler) or compile it yourself.

For the latter you can use the guide in the wiki