Search found 109 matches
- Wed Mar 03, 2021 1:19 pm
- Forum: C++ Development
- Topic: Where to Store User Data
- Replies: 14
- Views: 1589
Re: Where to Store User Data
Dear doublemax, Thank you for the extremely informative post. The connection between {placeholders} and environment variables is clear. I really appreciated the final code snippet from your installer. That makes installation easier. The next thing I wanted to know was, what are all the placeholders ...
- Tue Mar 02, 2021 10:18 pm
- Forum: C++ Development
- Topic: Where to Store User Data
- Replies: 14
- Views: 1589
Re: Where to Store User Data
Dear doublemax, Thank you for the innosetup. I'll use it. // ----------------------------------------------------------------------------- Dear ONEEYEMAN, You pose an excellent question. My answer is, I have no idea how Windows does anything. For example, suppose in my install program, I create a di...
- Tue Mar 02, 2021 5:47 pm
- Forum: C++ Development
- Topic: Where to Store User Data
- Replies: 14
- Views: 1589
Re: Where to Store User Data
OneEyeMan, thank you for the explanation of wxStandardPaths and the useful functions within it. Here is another question. Let's say my program is to be installed into C:\Program Files\IRT\DAS128 and the sample data I talked about earlier will be stored in C:\Program Files\IRT\DAS128\Sample Data Who ...
- Mon Mar 01, 2021 9:33 pm
- Forum: C++ Development
- Topic: Where to Store User Data
- Replies: 14
- Views: 1589
Re: Where to Store User Data
OneEyeMan, thank you for your reply. I do know about GetStandardPaths. I used it to get the ProgramData directory. But that directory is supposed to be used only for files used by my program, not the user. Right? This is where my knowledge about what files belong where, ends. I know enough to know I...
- Mon Mar 01, 2021 8:29 pm
- Forum: C++ Development
- Topic: Where to Store User Data
- Replies: 14
- Views: 1589
Where to Store User Data
In my application's installation program, I need to define a directory in which to store user data. When I say "user data," I mean files the user will create and edit on his own, outside the program, or possibly from within the program. These will be setup files for tests and test results....
- Mon Feb 01, 2021 6:06 pm
- Forum: C++ Development
- Topic: Need Example of wxFileConfig
- Replies: 2
- Views: 367
Need Example of wxFileConfig
I am trying to understand how the wxFileConfig class works. My task is to read, edit, and save an INI file containing 128 of the following data groups. There's actually more data than I show here for each channel, but I want to keep it simple for this question. [Channel 3] cal eqn=Linear channel id=...
- Tue Aug 28, 2018 8:08 pm
- Forum: C++ Development
- Topic: How to Place a wxStaticBitmap into a wxStatusBar
- Replies: 2
- Views: 702
How to Place a wxStaticBitmap into a wxStatusBar
I am looking at the sample program that came with wxWidgets called statbar (see below). Part of the executable of statbar shows a wxStatusBar bar containing a checkbox, a bitmap, and text. statbar.cpp My question is, how do the checkbox, bitmap, and text get loaded into the fields of the status box?...
- Wed Jun 27, 2018 12:06 pm
- Forum: C++ Development
- Topic: Could Not Convert to a bool--why not?
- Replies: 6
- Views: 4955
Re: Could Not Convert to a bool--why not?
@PB--thank you for the suggestion about smart pointers. I had never heard of them, so they will be a new tool in my software toolbox. Regarding not executing destructor code--that's a good point. I'll go over what I have for now, destructor-wise, and verify I'm not missing executing something there....
- Tue Jun 26, 2018 7:45 pm
- Forum: C++ Development
- Topic: Could Not Convert to a bool--why not?
- Replies: 6
- Views: 4955
Re: Could Not Convert to a bool--why not?
@Manolo and doublemax, O M G!!! LIFE IS GOOD AGAIN! You were both right--I had two boolean values that were supposed to be displayed in wxDataViewListCtrl checkboxes, but I was sending in UInt16s. I changed their values to be explicitly booleans, and now everything works again. I don't know why the...
- Tue Jun 26, 2018 5:24 pm
- Forum: C++ Development
- Topic: Could Not Convert to a bool--why not?
- Replies: 6
- Views: 4955
Could Not Convert to a bool--why not?
Hi, I have a very large program written in wxWidgets, C, and C++ for Windows that keeps giving me the execution error message "Could not convert to a bool." See the screen shot below. Could not convert to bool error.jpg The error occurs after execution leaves main.cpp's OnInit. OnInit runs...
- Tue Jun 12, 2018 7:17 pm
- Forum: Platform Related Issues
- Topic: How do I fix "error: '__off64_t' does not name a type"?
- Replies: 1
- Views: 2201
How do I fix "error: '__off64_t' does not name a type"?
Below is a build log of the build of my MinGW/wxWidgets/CodeLite workspace. As you can see, I have two projects that compile into a DLL, and they build fine. One DLL is plain C, and the other is a small C++ wrapper without any GUI. The main program is the one that bombs. It is a GUI in C++. C:\Windo...
- Thu Jun 07, 2018 9:58 pm
- Forum: Compiler / Linking / IDE Related
- Topic: Changing from 32-bit to 64-bit MinGW
- Replies: 1
- Views: 868
Changing from 32-bit to 64-bit MinGW
I am currently working in the following environment: * MinGW, 32 bit version * wxWidgets, originally compiled with MinGW-32. * CodeLite version 12.0.3 * Building in Windows 10 Test Mode * Target platform = Windows 10 * Developing on a 64-bit Windows computer I now need to change my development platf...
- Mon Apr 16, 2018 4:10 pm
- Forum: Compiler / Linking / IDE Related
- Topic: Latest Version of setup.h?
- Replies: 12
- Views: 4969
Re: Latest Version of setup.h?
Thanks, doublemax. I'll do that.
Colleen
Colleen
- Mon Apr 16, 2018 1:43 pm
- Forum: Compiler / Linking / IDE Related
- Topic: Latest Version of setup.h?
- Replies: 12
- Views: 4969
Re: Latest Version of setup.h?
Hi, doublemax, This is datatypes.h: #ifndef DATATYPES_H #define DATATYPES_H // ============================================================================= // Set Up Compiler Options // ============================================================================= /* Make sure functions are exported...
- Fri Apr 13, 2018 4:26 pm
- Forum: Compiler / Linking / IDE Related
- Topic: Latest Version of setup.h?
- Replies: 12
- Views: 4969
Re: Latest Version of setup.h?
Thank you for replying, doublemax. The first wx header inside ut_gui.h used to be #include <wx/string.h> Now the wx files in the ut_gui.h file #include list are just these: #include <wx/wx.h> // 5z #include <wx/string.h> // 6 I also edited the wrapper procedures to do more what I need them to do, an...