Search found 534 matches

by Widgets
Sat May 06, 2023 3:55 pm
Forum: C++ Development
Topic: wxFileConfig & memory manangement in recent releases
Replies: 12
Views: 814

Re: wxFileConfig & memory manangement in recent releases

Hi, You are a unique human being. Sure hope so ... People usually don't want extra work... 😀 No extra work - just a different way from the way you do thing, I presume. Instead of getting the pointer when needed, I simply keep a copy. Keeping track of the current path is similar, either I keep track...
by Widgets
Sat May 06, 2023 3:12 pm
Forum: C++ Development
Topic: wxFileConfig & memory manangement in recent releases
Replies: 12
Views: 814

Re: wxFileConfig & memory manangement in recent releases

Thank you all for your comments. I did read the documentation and followed the comments in the sample code, which says: // Of course, calling Set() is optional and you only must do it if // you want to later retrieve this pointer with Get(). As I am saving/keeping track of the pointer myself, I saw ...
by Widgets
Sat May 06, 2023 1:44 am
Forum: C++ Development
Topic: wxFileConfig & memory manangement in recent releases
Replies: 12
Views: 814

wxFileConfig & memory manangement in recent releases

In the past, my apps have regularly used wxFileConfig to handle persistent data. Running under Win 10/11 64-bit, MSVC 2022, wxWidgets 3.2.1 This meant, that when the app closed down it had to release the the config instance structure as part of my code with delete m_pConfig; As of wxWidgets 3.2.1, I...
by Widgets
Wed Apr 12, 2023 11:24 pm
Forum: C++ Development
Topic: wxGenericProgressDialog auto-resize problem
Replies: 2
Views: 389

Re: wxGenericProgressDialog auto-resize problem

Generated bug report with some sample code for the dialogs genericprogressdialog
by Widgets
Wed Apr 12, 2023 8:36 pm
Forum: C++ Development
Topic: wxGenericProgressDialog auto-resize problem
Replies: 2
Views: 389

wxGenericProgressDialog auto-resize problem

In one of my apps I am trying to use a wxGenericProgressDialog created on the stack. The problem I am seeing is that the dialog width is jumping all over the place, depending on the length of the string I am trying to display. I have tried using ellipsizing, but it only helps to a degree. In the Sta...
by Widgets
Thu Mar 23, 2023 3:24 pm
Forum: C++ Development
Topic: Embedding the PC Name in an app
Replies: 5
Views: 622

Re: Embedding the PC Name in an app

Thank you, yes the data has to be set up during the compile/link phase, not during run-time. Fortunately I am using the MSVC IDE and your suggestion to use a pre-build step is the perfect and relatively easy solution. In fact it is greatly simplified, because during the build phases, all of the IDE'...
by Widgets
Thu Mar 23, 2023 4:06 am
Forum: C++ Development
Topic: Embedding the PC Name in an app
Replies: 5
Views: 622

Re: Embedding the PC Name in an app

My bad explanation.
No need to have the function static.
It simply MUST be something outside the code at run time so that it reflects the name or ID of the PC on which that specific version of the app is compiled and linked
by Widgets
Wed Mar 22, 2023 8:52 pm
Forum: C++ Development
Topic: Embedding the PC Name in an app
Replies: 5
Views: 622

Embedding the PC Name in an app

Working on a LAN & using Git, some of my utilities might get compiled on any one PC, which is OK until I need to find out which PC holds the latest version of a specific utility. What I would like to do is it include the PC name of the PC where the utility is being compiled into the About dialog...
by Widgets
Sat Jan 21, 2023 6:49 pm
Forum: Platform Related Issues
Topic: Propgrid issue/difference between Win 10 & 11
Replies: 3
Views: 839

Re: Propgrid issue/difference between Win 10 & 11

Happy to say, it seems to be fixed today after a clean boot of the PC. #-o
False alarm
by Widgets
Sat Jan 21, 2023 1:35 am
Forum: Platform Related Issues
Topic: Propgrid issue/difference between Win 10 & 11
Replies: 3
Views: 839

Propgrid issue/difference between Win 10 & 11

When I try to run one of my wxWidgets apps on Win 11, displaying a wxArrayString property dialog simply fails to open. If I run the very same app om Win 10, the dialog opens as expected and displays the several strings. I don't really plan to investigate this further, but want to raise the issue and...
by Widgets
Sun Jan 08, 2023 5:19 pm
Forum: Platform Related Issues
Topic: Detect an empty drive root directory
Replies: 4
Views: 1396

Re: Detect an empty drive root directory

Certainly a potential option.

One of the unstated and only recently recognized 'requirements' was to use as little time as possible to make the function usable in OnUpdateUI.
by Widgets
Sat Jan 07, 2023 7:03 pm
Forum: Platform Related Issues
Topic: Detect an empty drive root directory
Replies: 4
Views: 1396

Re: Detect an empty drive root directory

Thank you; it looks like there is no easy, let alone ready made solution for such a seemingly simple question. Even with Linux, I am concerned because they seem to love that 'period' and all those files (and directories) which start with a '.' :-) Since OSX is a *nix derivative ( as it seems is true...
by Widgets
Fri Jan 06, 2023 7:28 pm
Forum: Platform Related Issues
Topic: Detect an empty drive root directory
Replies: 4
Views: 1396

Detect an empty drive root directory

Running on Win 10+, using wxWidgets 3.1.4 &3.2.1, I am trying to determine whether a directory 'is empty', starting with a drive's root. All my searching has not come up with a simple, reliable, much less portable way to check if the specified directory is 'empty' of user files. For directories ...
by Widgets
Tue Aug 02, 2022 9:38 pm
Forum: Database Related
Topic: wxSqlite3 & secondary thread
Replies: 8
Views: 8106

Re: wxSqlite3 & secondary thread

Perfect.
Not needing anything extra in the main GUI thread is a big bonus, since the secondary thread will need to be run very infrequently and that extra code in the main app would be eating up CPU cycles all the time.
by Widgets
Tue Aug 02, 2022 8:50 pm
Forum: Database Related
Topic: wxSqlite3 & secondary thread
Replies: 8
Views: 8106

Re: wxSqlite3 & secondary thread

That last reference to the Sqlite3 documentation answered all of my (current) questions :D What I take from the information there and from this discussion, that I will to be able to let (wx)Sqlite3 look after the db access control and won't need any additional external 'magic' like mutexes, as long ...