What is the right way to close a frame in wxWidgets Topic is solved

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
sly_chandan
Earned some good credits
Earned some good credits
Posts: 116
Joined: Fri Sep 25, 2015 2:33 pm

Re: What is the right way to close a frame in wxWidgets

Post by sly_chandan »

The way I install the wxwidgets is like this:

I extract the 2 rar files and copy & paste the lib and include folders into the installation of wxWidgets 3.1.4 folder.

I then run the mingw32 command for compiling the wxWidgets files

This is how I install the wxwidgets library.

Am I doing it the right way?
User avatar
doublemax
Moderator
Moderator
Posts: 19114
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: What is the right way to close a frame in wxWidgets

Post by doublemax »

The purpose of the prebuilt libraries is that you don't have to build them yourself.

add <prebuild>/lib/gcc920TDM_dll/mswu/ (or mswud for debug) as first one(!) to the include paths.
(If the compiler looks for setup.h, it should be taken from here)

include libs from <prebuild>/lib/gcc920TDM_dll/

I also just remembered a crash related to GCC920.
https://groups.google.com/g/wx-users/c/ ... IlTA5XAAAJ

Maybe you could try with GCC 8.1 if you run out of ideas.
Use the source, Luke!
sly_chandan
Earned some good credits
Earned some good credits
Posts: 116
Joined: Fri Sep 25, 2015 2:33 pm

Re: What is the right way to close a frame in wxWidgets

Post by sly_chandan »

I don't quite understand what you are saying.

Can you show me how to Build the wxwidgets library?

I have a process of compiling the library.

Can you show me your way?
User avatar
doublemax
Moderator
Moderator
Posts: 19114
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: What is the right way to close a frame in wxWidgets

Post by doublemax »

I don't use MinGW/GCC, but this post might help:
viewtopic.php?f=19&t=47231
Use the source, Luke!
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7458
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: What is the right way to close a frame in wxWidgets

Post by ONEEYEMAN »

Hi,
Please DO NOT intermix the builds of the library.
Also, if you want to build this yourself:
1. Drop the UNICODE option it is ON by default.
2. Drop the MONOLITHIC option - it doesn't give you anything, just create more problems and its rarely tested by the core devs.
3. Are you building the DLL or you put the application in one binary? If the latter - use SHARED=0 to link the wxWidgets statically.

Thank you.
sly_chandan
Earned some good credits
Earned some good credits
Posts: 116
Joined: Fri Sep 25, 2015 2:33 pm

Re: What is the right way to close a frame in wxWidgets

Post by sly_chandan »

I have SUCCESSFULLY build the wxWidgets Library in Visual Studio 2019 community edition.

I created my Project and ran it SUCCESSFULLY in VS 2019.

I now know that the problem is in the way I am building my library.

I still like CodeBlocks and like to do development work there instead of VS 2019.
What would you recommend? VS or Codeblocks for wxwidgets?

The Steps given for VS are clearly stated on https://github.com/wxWidgets/wxWidgets/ ... tag/v3.1.4

Are there no steps given for Codeblocks installation and WxWidgets?

Thanks a Ton! @ doublemax.

You've been patient with me all the time.

:D
User avatar
doublemax
Moderator
Moderator
Posts: 19114
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: What is the right way to close a frame in wxWidgets

Post by doublemax »

I still like CodeBlocks and like to do development work there instead of VS 2019.
What would you recommend? VS or Codeblocks for wxwidgets?
That depends on your demands.

I use VS, because...
1) i only work under Windows
2) i only need executables that run under Windows
3) i don't use a graphical GUI editor
4) the compiler is much faster than MinGW/GCC
Use the source, Luke!
sly_chandan
Earned some good credits
Earned some good credits
Posts: 116
Joined: Fri Sep 25, 2015 2:33 pm

Re: What is the right way to close a frame in wxWidgets

Post by sly_chandan »

Alright.

I guess I should also stick to VS 2019.

I really appreciate your help.

Thanks!
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7458
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: What is the right way to close a frame in wxWidgets

Post by ONEEYEMAN »

Hi,
Also windows and msvc are produced by the same company, therefore msvc might generate better code.

Thank you

P.S. Try to compile the library as I suggested.
sly_chandan
Earned some good credits
Earned some good credits
Posts: 116
Joined: Fri Sep 25, 2015 2:33 pm

Re: What is the right way to close a frame in wxWidgets

Post by sly_chandan »

Just a small question.

How do I create a shell application for wxWidgets app in VS 2019

Is there a procedure or article that helps build the shell project?
User avatar
doublemax
Moderator
Moderator
Posts: 19114
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: What is the right way to close a frame in wxWidgets

Post by doublemax »

What do you mean with "shell application" ?
Use the source, Luke!
sly_chandan
Earned some good credits
Earned some good credits
Posts: 116
Joined: Fri Sep 25, 2015 2:33 pm

Re: What is the right way to close a frame in wxWidgets

Post by sly_chandan »

A wxWidgets App to start with.

Like in Codeblocks , we have a wxWidgets project to begin with.

A Starter Template app in VS 2019 for wxWidgets app to start with a wxApp and a WxFrame app

Shell application like how we have in Windows Forms application.
User avatar
doublemax
Moderator
Moderator
Posts: 19114
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: What is the right way to close a frame in wxWidgets

Post by doublemax »

sly_chandan wrote: Fri Feb 19, 2021 10:14 am Like in Codeblocks , we have a wxWidgets project to begin with.
A Starter Template app in VS 2019 for wxWidgets app to start with a wxApp and a WxFrame app
There is no official template. I'd just copy the "minimal" sample and start from there.
Use the source, Luke!
PB
Part Of The Furniture
Part Of The Furniture
Posts: 4193
Joined: Sun Jan 03, 2010 5:45 pm

Re: What is the right way to close a frame in wxWidgets

Post by PB »

Or you can just let MSVS project wizard create an empty Windows application and use this guide to add wxWidgets to it:
viewtopic.php?f=19&t=46700#p196105
sly_chandan
Earned some good credits
Earned some good credits
Posts: 116
Joined: Fri Sep 25, 2015 2:33 pm

Re: What is the right way to close a frame in wxWidgets

Post by sly_chandan »

How do I build the wxwidgets library via mingw

I would like to do development work with codeblocks as well.

Is there a step by step instructions to Build via mingw

Please mention what needs to be downloaded and extracted
Post Reply