Search found 3087 matches

by PB
Sat Jun 05, 2021 6:14 pm
Forum: C++ Development
Topic: SIGSEGV message during debugging, but not consistently
Replies: 14
Views: 1711

Re: SIGSEGV message during debugging, but not consistently

Firstly, wxWidgets does not use any .NET stuff. Out of curiosity I tried to reproduce the issue with the dialogs sample but I could not. I think as the error indicates, the other machine is messed-up somehow and the issue is not with wxWidgets. I assume the build setup and parameters are exactly the...
by PB
Sat Jun 05, 2021 5:31 pm
Forum: C++ Development
Topic: [wxMSW] How to force a wxStaticBitmap drawing update.
Replies: 5
Views: 1661

Re: [wxMSW] How to force a wxStaticBitmap drawing update.

FWIW, the following code shows that just wxGenericStaticBitmap::SetBitmap() correctly updates the bitmap on MSW with wxWidgets 3.1.6 (I am not aware of any relevant changes since 3.1.5): #include <wx/wx.h> #include <wx/generic/statbmpg.h> wxBitmap CreateBitmap(const wxColour& clr, bool isSmall = tru...
by PB
Sat Jun 05, 2021 7:44 am
Forum: C++ Development
Topic: How to get the 'absolute' position of a widget?
Replies: 4
Views: 1312

Re: How to get the 'absolute' position of a widget?

[At the same time I want to draw image in this panel, the image should be positioned strictly in the panel. Why not draw using this panel? If you have a wxFrame and want to draw over its child wxPanel (once again, a bad idea), I think it would conflict with the child drawing (and would generally be...
by PB
Sat Jun 05, 2021 7:23 am
Forum: C++ Development
Topic: How to get the 'absolute' position of a widget?
Replies: 4
Views: 1312

Re: How to get the 'absolute' position of a widget?

What do you mean? If you want to draw on a window, you draw on its dc with coordinates relative to the upper left corner, with window and DC coordinates generally matching each other. If you want to draw on other windows (generally a very bad idea), you can easily convert the coordinates between par...
by PB
Tue Jun 01, 2021 5:42 am
Forum: Compiler / Linking / IDE Related
Topic: Error Compiling 3.1.5, "Permission denied"
Replies: 8
Views: 3177

Re: Error Compiling 3.1.5, "Permission denied"

Weirdly though, now I'm getting this error when I try to compile it... gcc: error: CreateProcess: No such file or directory This error is usually avoided by adding SHELL=cmd.exe to your command line arguments, i.e.: mingw32-make.exe -f makefile.gcc BUILD=release UNICODE=1 SHARED=0 SHELL=cmd.exe How...
by PB
Tue Jun 01, 2021 5:38 am
Forum: Open Discussion
Topic: Documentation
Replies: 2
Views: 3457

Re: Documentation

The changes between versions are documented in the changelog. For 3.1.5, you can find it here:
https://raw.githubusercontent.com/wxWid ... hanges.txt

Just search for "wxgrid" there
by PB
Mon May 31, 2021 5:46 am
Forum: C++ Development
Topic: EVT_BUTTON problem
Replies: 5
Views: 916

Re: EVT_BUTTON problem

It is because you map the event with ID Minimal_Button1 but create the actual button with wxID_ANY. You should have m_button = new wxButton(m_panel, Minimal_Button1, "set", wxPoint(40, 60)); But honestly, your code is a mess. The frame creation code should be in the MyFrame constructor, not in the M...
by PB
Sun May 30, 2021 4:42 pm
Forum: Open Discussion
Topic: Will wx support gtk4?
Replies: 3
Views: 4302

Re: Will wx support gtk4?

I believe this is still the most recent information
https://groups.google.com/g/wx-dev/c/3n ... rxhdaRBgAJ
by PB
Sun May 30, 2021 9:50 am
Forum: Compiler / Linking / IDE Related
Topic: I search working example cmake for Windows
Replies: 7
Views: 3830

Re: I search working example cmake for Windows

Please do not create new threads for the same topic you already did. Particularly if you go silent in the existing topic where people tried to help you. This is not only rude but also pollutes the forum with noise. An example CMakefile is shipped with wxWidgets, in the minimal sample folder. If you ...
by PB
Sun May 30, 2021 7:55 am
Forum: Compiler / Linking / IDE Related
Topic: Error Compiling 3.1.5, "Permission denied"
Replies: 8
Views: 3177

Re: Error Compiling 3.1.5, "Permission denied"

I think Mingw32-make.exe should be bug-fixed so it will run correctly just by typing in the full path of the exe and the full path of the target makefile. It is not intuitive that it would require adding it to the PATH variable and that it must launch from within the target makefile directory. It w...
by PB
Sat May 29, 2021 7:59 pm
Forum: Compiler / Linking / IDE Related
Topic: Error Compiling 3.1.5, "Permission denied"
Replies: 8
Views: 3177

Re: Error Compiling 3.1.5, "Permission denied"

The way you quote the paths looks very odd to me, usually the whole path is enclosed by quotes. I also think you should pass the actual makefile name with the -f parameter, not just a folder name. But why not trying to do it the normal way instead? In other words: 1. Add the mingw's bin folder to th...
by PB
Sat May 29, 2021 2:45 pm
Forum: Compiler / Linking / IDE Related
Topic: cmake for MinGW and STC link errors
Replies: 2
Views: 2489

Re: cmake for MinGW and STC link errors

You must be doing something you did not mention here. Your make arguments show that you build wxWidgets as DLLs (SHARED=1), which puts them in WXWIN/lib/gcc_ dll folder. However, your CMakefile refers to gcc_ lib folder. If you use DLL wxWidgets build, your application does not need to link to scint...
by PB
Sat May 29, 2021 7:12 am
Forum: Compiler / Linking / IDE Related
Topic: Getting "unresolved external symbol _main" error in VS2019
Replies: 12
Views: 3589

Re: Getting "unresolved external symbol _main" error in VS2019

Following those steps got it running! I tried doing the same with an empty project and it came up with the _main error again, so I'm assuming that creating an empty Windows Desktop App sets something to make it happy. This is because Empty Project template uses Console and not Windows linker subsys...
by PB
Sat May 29, 2021 7:08 am
Forum: Compiler / Linking / IDE Related
Topic: cmake for Visual Studio and link errors
Replies: 1
Views: 2272

Re: cmake for Visual Studio and link errors

I wonder if TARGET_CPU=X64 really works with nmake - it appears it does not for you. I always run 64-bit MSVS command prompt without using TARGET_CPU to build 64-bit.
by PB
Fri May 28, 2021 3:36 pm
Forum: Compiler / Linking / IDE Related
Topic: Getting "unresolved external symbol _main" error in VS2019
Replies: 12
Views: 3589

Re: Getting "unresolved external symbol _main" error in VS2019

FWIW, I just tried the below and I was able to build the project successfully. Step 1 I downloaded files wxMSW-3.1.5_vc14x_x64_ReleaseDLL.7z wxMSW-3.1.5_vc14x_x64_Dev.7z wxWidgets-3.1.5.7z Step 2 I extracted the three downloaded archives to originally empty folder c:\wxWidgets . Step 3 I ensured MSV...