Search found 2778 matches

by PB
Sat Jan 23, 2021 7:34 am
Forum: Platform Related Issues
Topic: How to run the command and display it in the console?
Replies: 4
Views: 75

Re: How to run the command and display it in the console?

I think the file not found is "cd" which wxExecute takes as the name of the executable. However, "cd" is a shell command. I would try calling wxExecute with something like cmd /c cd c:\someFolder I recommend playing with the bundled "exec" sample, where one can easily test wxExecute with various par...
by PB
Wed Jan 20, 2021 11:27 am
Forum: C++ Development
Topic: wxDataViewListCtrl on click item action not executing.
Replies: 66
Views: 1244

Re: wxDataViewListCtrl on click item action not executing.

Or, if wxLogDebug() output is consumed by the debugger and may not be shown (e.g., gdb on MSW), one can try good old wxPrintf(). However, this probably won't be shown on MSW.
by PB
Tue Jan 19, 2021 12:51 pm
Forum: Compiler / Linking / IDE Related
Topic: Compile wxWidgets source using __stdcall instead of __cdecl on Windows
Replies: 10
Views: 341

Re: Compile wxWidgets source using __stdcall instead of __cdecl on Windows

Disclaimer: I cannot say I really understand the issue (changing the calling convention being a best solution), so I may be missing something. All wxWidgets classes (e.g., wxString) and functions (e.g., wxSplit) exported from wxWidgets DLLs are declared with WXDLLIMPEXP_ <library> macro (e.g., WXDLL...
by PB
Fri Jan 15, 2021 2:16 pm
Forum: C++ Development
Topic: wxFilePickerCtrl really slow
Replies: 3
Views: 105

Re: wxFilePickerCtrl really slow

I do not see this.

As usual: Can you reproduce it in the widgets sample? Is the delay there also when using wxFileDialog directly? Can you reproduce the issue on more than one PC?
by PB
Fri Jan 15, 2021 10:47 am
Forum: Platform Related Issues
Topic: wxSingleInstanceChecker is fully functional on Win10 ?
Replies: 5
Views: 148

Re: wxSingleInstanceChecker is fully functional on Win10 ?

Did you try compiling and running my code and did it work? If it did, the issue is with your code. You are relying on wxWidgets generating the mutex name for you, using wxApp::GetAppName() and wxGetUserId(). As I wrote: did you check if the two are always the same, regardless of how you launch the a...
by PB
Fri Jan 15, 2021 10:12 am
Forum: Platform Related Issues
Topic: wxSingleInstanceChecker is fully functional on Win10 ?
Replies: 5
Views: 148

Re: wxSingleInstanceChecker is fully functional on Win10 ?

I cannot confirm this. Using this code (wxWidgets master, static x64 build) #include <wx/wx.h> #include <wx/snglinst.h> class MyApp : public wxApp { public: bool OnInit() override { m_checker = new wxSingleInstanceChecker("8982E339-BF01-4E66-BD92-9A281EC21E45"); if ( m_checker->IsAnotherRunning() ) ...
by PB
Tue Jan 12, 2021 6:15 pm
Forum: C++ Development
Topic: wxDataViewListCtrl on click item action not executing.
Replies: 66
Views: 1244

Re: wxDataViewListCtrl on click item action not executing.

This is odd, I would try (assuming this is a Browser instance) SampleListView->Bind(wxEVT_DATAVIEW_SELECTION_CHANGED, &Browser::OnClickSampleView, this); If this works, it means that SampleListView is not in a child of Browser (no matter how many levels deep it may be). If even this does not work, y...
by PB
Mon Jan 11, 2021 6:36 am
Forum: Compiler / Linking / IDE Related
Topic: using wxThread with different MinGW-W64 Compiler versions
Replies: 7
Views: 231

Re: using wxThread with different MinGW-W64 Compiler versions

Indeed i did. Maybe I do not see the obvious. Isn't that what that posts said (just resorted the text) posix: enable C++11/C11 multithreading features. means native std:thread win32: No C++11 multithreading features. means: libstdc++'s C++11 <thread>,.. does not have a complete implementation in GC...
by PB
Sun Jan 10, 2021 10:31 pm
Forum: Compiler / Linking / IDE Related
Topic: using wxThread with different MinGW-W64 Compiler versions
Replies: 7
Views: 231

Re: using wxThread with different MinGW-W64 Compiler versions

I am not sure I understand you. IMO, 1. wxThread is MinGW thread-model agnostic and uses directly either MSCRT functions (when available) or Windows API ones. 2. A library and an application using it should be always built with the same compiler toolchain and the same settings. I assume you also fou...
by PB
Sun Jan 10, 2021 7:24 pm
Forum: Compiler / Linking / IDE Related
Topic: using wxThread with different MinGW-W64 Compiler versions
Replies: 7
Views: 231

Re: using wxThread with different MinGW-W64 Compiler versions

Currently I do not know what is influencing the selection. Is it my choice of compiler I believe thread and exception handling models may be related to how the compiler was built, when you run gcc -v for mingw-w64 distributions i686-8.1.0- posix -sjlj-rt_v6-rev0 and i686-8.1.0- win32 -sjlj-rt_v6-re...
by PB
Sun Jan 10, 2021 5:55 pm
Forum: Compiler / Linking / IDE Related
Topic: using wxThread with different MinGW-W64 Compiler versions
Replies: 7
Views: 231

Re: using wxThread with different MinGW-W64 Compiler versions

I am not saying I know a lot about threads or GCC but are you sure a different thread model affects wxThread at all? AFAICS, on MSW, wxThread uses either MSCRT (e.g., _beginthreadex) or Windows API (e.g., CreateThread) functions, as can be seen in its source. OTOH, AFAIK, std::thread does not work o...
by PB
Fri Jan 08, 2021 9:53 pm
Forum: Compiler / Linking / IDE Related
Topic: Create makefile for wxwidgets project
Replies: 10
Views: 267

Re: Create makefile for wxwidgets project

FWIW, on MSW in CodeLite generated makefile, there is CXXFLAGS := -O2 -Wall $(shell wx-config --cflags) $(Preprocessors) One probably has to tell wx-config which configuration to use, AFAIK CodeLite uses system environment variable WXCFG, e.g. WXCFG:=gcc_lib/mswu but it should be possible with wx-co...
by PB
Thu Jan 07, 2021 8:30 am
Forum: Compiler / Linking / IDE Related
Topic: Create Cmake file for WxWidgets project
Replies: 2
Views: 143

Re: Create Cmake file for WxWidgets project

I know very little about CMake but FWIW, here is my simple CMakeFile for a small application using wxWidgets (tested only on MSW and Linux). It uses only core and base wxWidgets libraries, so if any more are needed they need to be added in this line (and minimal required version of wxWidgets can be ...
by PB
Wed Jan 06, 2021 3:23 pm
Forum: General Development
Topic: Updating GUI with data from multiple threads
Replies: 2
Views: 100

Re: Updating GUI with data from multiple threads

Where is the problem? You just need to create 4 threads instead of one and the threads will send the images together with other data and camera id and the main thread will have to know what to do with them? FWIW, here is a similar example code I wrote some time ago (in particular ocvframe.cpp); howe...
by PB
Tue Jan 05, 2021 10:36 pm
Forum: Compiler / Linking / IDE Related
Topic: Building wxMediaCtrl related things on ARM Mac
Replies: 8
Views: 238

Re: Building wxMediaCtrl related things on ARM Mac

blssed wrote:
Tue Jan 05, 2021 9:58 pm
Maybe im just missing something here, but is it possible its just not working on ARM Macs yet?
I know nothing about MacOS but did you try building the bundled mediaplayer sample the same way you built wxWidgets,which I assume was with provided CMakefile? Are you using GIT master?