Search found 135 matches
- Tue May 26, 2020 9:53 pm
- Forum: wxCode
- Topic: Suddenly having an odd issue with wxSqlite3...
- Replies: 1
- Views: 13673
Suddenly having an odd issue with wxSqlite3...
So I have this SQL String I store in a variable: select distinct PartNumber from WEBSITE where PartNumber in (select PartNumber from WEBSITE where PartNumber != \"\" group by PartNumber having (COUNT(PartNumber) > 1)) order by PartNumber; This looks for duplicate item numbers in our DB and...
- Mon Jul 30, 2018 2:06 am
- Forum: C++ Development
- Topic: Anyone know how to make something like an inverted listbox?
- Replies: 4
- Views: 1132
Re: Anyone know how to make something like an inverted listbox?
But if the control if bigger than the list of items there is a gap at the bottom. And there will be scroll bars yes.
- Sun Jul 29, 2018 6:02 pm
- Forum: C++ Development
- Topic: Anyone know how to make something like an inverted listbox?
- Replies: 4
- Views: 1132
Anyone know how to make something like an inverted listbox?
So I'm trying to figure out a way to make a wxlistbox or wxListCtrl or any list-ish control that can be inverted so that the top of the control is the bottom. What I want to do is create two controls full of numbers. The bottom control is sorted ascending and the smallest number appears on top like ...
- Thu Jul 26, 2018 6:59 pm
- Forum: wxCode
- Topic: wxSQLIte3 from sources...
- Replies: 13
- Views: 14085
Re: wxSQLIte3 from sources...
I noticed your using direct directory references in CodeBlocks. You should really avoid doing that and use global variables instead. This insures all the project files, libraries and other necessary things will be found on any computer no matter where the files get installed or what operating system...
- Thu Jul 26, 2018 6:37 pm
- Forum: wxCode
- Topic: wxSqlite3 and Creating Virtual tables...
- Replies: 3
- Views: 2442
Re: wxSqlite3 and Creating Virtual tables...
Ah, I see. Thanks to you both.
- Thu Jul 26, 2018 9:39 am
- Forum: wxCode
- Topic: wxSqlite3 and Creating Virtual tables...
- Replies: 3
- Views: 2442
wxSqlite3 and Creating Virtual tables...
What is the best way to create a table that say consists of 3 columns: Name char, Price real, Qty real I don't see where this could be done using wxSqlite3 unless I'm missing something. (I probably am, ;) ) I just want to create a table that I can use but doesn't actually get saved. Is there a bette...
- Wed Jul 25, 2018 2:27 pm
- Forum: wxCode
- Topic: Does wxCharts not support mingw?
- Replies: 3
- Views: 2909
Re: Does wxCharts not support mingw?
I tried that and it doesn't work. It seems the makefile is calling wx-config inline with compiler options.
- Mon Jul 23, 2018 12:32 pm
- Forum: wxCode
- Topic: Does wxCharts not support mingw?
- Replies: 3
- Views: 2909
Does wxCharts not support mingw?
I can't seem to find a makefile in their github that will build it?
The makefilegnu that they have looks for wx-config which of course doesn't exist on windows.
The makefilegnu that they have looks for wx-config which of course doesn't exist on windows.
- Mon Jul 02, 2018 5:18 pm
- Forum: Compiler / Linking / IDE Related
- Topic: Not intalled wxWidgets3.1.1 [HELP]
- Replies: 4
- Views: 1487
Re: Not intalled wxWidgets3.1.1 [HELP]
Yeah, as someone who used to use TDM-gcc I can confirm that switching to MinGW-w64 is definitely worth the trouble. I had some strange issues with the latest version of tdm-gcc that were never resolved as well (seemed like a tool chain bug). These went away when I switched to the latest MinGW-w64, s...
- Thu Jun 14, 2018 7:29 pm
- Forum: wxCode
- Topic: wxSqlite3 requires sqlite3secure.h?
- Replies: 3
- Views: 2653
Re: wxSqlite3 requires sqlite3secure.h?
So what is the recommended way to build wxSqlite3 statically without creating encrypted database files these days then?
Or is it recommended not to do that anymore?
Or is it recommended not to do that anymore?
- Tue Jun 12, 2018 5:53 pm
- Forum: wxCode
- Topic: wxSqlite3 requires sqlite3secure.h?
- Replies: 3
- Views: 2653
wxSqlite3 requires sqlite3secure.h?
I'm trying to update my rather old version of wxsqlite3. It's stopping saying that sqlite3secure.h is required. I see the include for that file is not gated behind any if statements. Is that right? I'm trying to build with these variables defined: wxUSE_DYNAMIC_SQLITE3_LOAD=0 WXSQLITE3_HAVE_METADATA...
- Wed Dec 18, 2013 11:41 pm
- Forum: wxCode
- Topic: wxSQLite3 passing database pointer support?
- Replies: 7
- Views: 5169
Re: wxSQLite3 passing database pointer support?
I got it figured out. Turns out it's a good idea to make sure your passing your pointers to a valid variable... lol Basically there was a public variable in a class that was supposed to receive the pointer but it wasn't fully initialized by the time the database pointer was sent to it. Thanks for th...
- Tue Dec 17, 2013 8:24 pm
- Forum: wxCode
- Topic: wxSQLite3 passing database pointer support?
- Replies: 7
- Views: 5169
Re: wxSQLite3 passing database pointer support?
Well I tried your code and I don't see a message box either, so apparently it's crashing before wxSqlite3 takes over but the crash is on that line. Hmm...
- Mon Dec 16, 2013 11:20 pm
- Forum: wxCode
- Topic: wxSQLite3 passing database pointer support?
- Replies: 7
- Views: 5169
Re: wxSQLite3 passing database pointer support?
What is the best way to catch an wxSQLite3 exception? I tried: try { ResultTable = dbs->GetTable("select Name from TABLE;"); } catch(int e) { wxMessageBox(wxSQLite3Exception::ErrorCodeAsString(e)); } But no error message came up so I assume nothing was thrown?
- Sat Dec 14, 2013 12:05 am
- Forum: wxCode
- Topic: wxSQLite3 passing database pointer support?
- Replies: 7
- Views: 5169
wxSQLite3 passing database pointer support?
I'm getting problems when trying to the pointer of my already opened database to another window. I'm just using similar code to this: wxSQLite3Database* newdb; wxSQLite3Database olddb; newdb = &olddb; wxSQLite3Table ResultTable; ResultTable = newdb->GetTable("select Name from TABLE;");...