News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Can't start a project due to some unknown problems

Started by Mvice21, July 05, 2021, 06:16:51 PM

Previous topic - Next topic

Mvice21

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?

oBFusCATed

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!]

Mvice21

#2
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.

oBFusCATed

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!]

Mvice21

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.

Mvice21

#5
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?

oBFusCATed

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!]

Mvice21

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.

Miguel Gimenez

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