Search found 13969 matches

by doublemax
Tue Sep 17, 2019 4:02 pm
Forum: C++ Development
Topic: multiple monitor display at old position
Replies: 3
Views: 32

Re: multiple monitor display at old position

Did you check that bearbx, bearby actually contain what you expect?
by doublemax
Tue Sep 17, 2019 5:28 am
Forum: Compiler / Linking / IDE Related
Topic: wxwidgets unresolved external symbol _mainreferend in function int
Replies: 4
Views: 73

Re: wxwidgets unresolved external symbol _mainreferend in function int

As this is a GUi application under Windows, it should look for WinMain, not main. Check the project properties at Linker -> System and make sure "Subsystem:Windows" is selected.
by doublemax
Tue Sep 17, 2019 5:05 am
Forum: C++ Development
Topic: button right align by AddStretchSpacer not work
Replies: 6
Views: 82

Re: button right align by AddStretchSpacer not work

Your code looks ok, the problem is mostly how you insert pSizer_0_0 into another sizer. E.g. if you put it into a vertical sizer, set the wxEXPAND flag so that it takes the whole width.

Code: Select all

pSizer_0->Add(pSizer_0_0, 0, wxEXPAND);
by doublemax
Mon Sep 16, 2019 3:42 pm
Forum: C++ Development
Topic: button right align by AddStretchSpacer not work
Replies: 6
Views: 82

Re: button right align by AddStretchSpacer not work

Using wxALIGN_RIGHT like Manolo wrote will not work in this case. This is only allowed in a vertical boxsizer and serves a (slightly) different purpose. Your code looks ok, the problem is mostly how you insert pSizer_0_0 into another sizer. E.g. if you put it into a vertical sizer, set the wxEXPAND ...
by doublemax
Sat Sep 14, 2019 9:29 pm
Forum: Compiler / Linking / IDE Related
Topic: Aplication compile without errors, but won't start!
Replies: 2
Views: 50

Re: Aplication compile without errors, but won't start!

The error message could indicate that there is an actual problem in the code.
I just start the basic/example wxWidgets project
What are you referring to? Where does this sample come from?

Can you build and run the "minimal" sample that comes with wxWidgets?
by doublemax
Sat Sep 14, 2019 9:25 pm
Forum: Compiler / Linking / IDE Related
Topic: undefined reference IID_Iaccessible from libwxmsw31u_core.a on wxpdfdocument's makefont project
Replies: 7
Views: 92

Re: undefined reference IID_Iaccessible from libwxmsw31u_core.a on wxpdfdocument's makefont project

The linker command line looks a little strange, but as i'm only an occasional MinGW user i can't tell if it's wrong. Here's what i get when building a minimal test with CB: mingw32-g++.exe -LC:\Users\Test\Desktop\wx312\lib\gcc_lib -o bin\Debug\test1.exe obj\Debug\test1App.o obj\Debug\test1Main.o obj...
by doublemax
Sat Sep 14, 2019 6:37 pm
Forum: C++ Development
Topic: wxPropertyGrid::ChangePropertyValue not work
Replies: 4
Views: 121

Re: wxPropertyGrid::ChangePropertyValue not work

Are you going to open a ticket for this?
by doublemax
Sat Sep 14, 2019 9:15 am
Forum: C++ Development
Topic: wxPropertyGrid::ChangePropertyValue not work
Replies: 4
Views: 121

Re: wxPropertyGrid::ChangePropertyValue not work

This looks like a bug indeed. It works if you use CallAfter for the inner method call: if (s.ToDouble(&n)) { n *= 2; CallAfter([=] { bool ok = ChangePropertyValue(_pProp_2, n ); // This line will be executed and return true, but UI doesn't change. // wxPropertyGrid::SetPropertyValue works // wxPGPro...
by doublemax
Fri Sep 13, 2019 11:04 pm
Forum: Compiler / Linking / IDE Related
Topic: undefined reference IID_Iaccessible from libwxmsw31u_core.a on wxpdfdocument's makefont project
Replies: 7
Views: 92

Re: undefined reference IID_Iaccessible from libwxmsw31u_core.a on wxpdfdocument's makefont project

The missing references are inside Windows libraries. Add Oleacc.lib and Ole32.lib to the linker inputs. (liboleacc.a and libole32.a for MinGW). If other undefined references pop up, Google "msdn + missing reference" and it will find a page that shows which library you need to add. E.g. https://docs....
by doublemax
Fri Sep 13, 2019 10:49 pm
Forum: C++ Development
Topic: What is the correct way of converting a wxString?
Replies: 4
Views: 66

Re: What is the correct way of converting a wxString?

Converting a wxString into another wxString using any of these methods is just bad. Don't do it.

Append all incoming data into a wxMemoryBuffer and then convert the data to a wxString.
by doublemax
Fri Sep 13, 2019 9:49 pm
Forum: C++ Development
Topic: What is the correct way of converting a wxString?
Replies: 4
Views: 66

Re: What is the correct way of converting a wxString?

What type is strBuf? It looks like it's a wxString which would be wrong. wxString is unsuitable as a generic byte container. If you're receiving data from an external source, you should have a (unsigned) char buffer and and number of valid bytes in it. (or a wxMemoryBuffer if you want to use a wx cl...
by doublemax
Fri Sep 13, 2019 5:35 am
Forum: Compiler / Linking / IDE Related
Topic: Building wxWidgets Program with MSYS2 + CMake
Replies: 10
Views: 151

Re: Building wxWidgets Program with MSYS2 + CMake

Try sorting the includes so that all wx headers are included first, then all others. wx/wx.h or wx/wxprec.h should always be the first wx header. Including wx/defs.h should not be necessary.
by doublemax
Thu Sep 12, 2019 3:23 pm
Forum: Compiler / Linking / IDE Related
Topic: Building wxWidgets Program with MSYS2 + CMake
Replies: 10
Views: 151

Re: Building wxWidgets Program with MSYS2 + CMake

Please post the exact error messages.
by doublemax
Thu Sep 12, 2019 9:23 am
Forum: C++ Development
Topic: Unwanted header highlighting in wxDataViewCtrl
Replies: 1
Views: 32

Re: Unwanted header highlighting in wxDataViewCtrl

Which platform are you using? wxDataViewCtrl uses a generic implementation under Windows and wraps native controls under OSX and GTK. While it may be possible to change the behavior under Windows, it's probably not possible under the other platforms.