Search found 940 matches

by utelle
Sun Jul 14, 2019 9:20 am
Forum: Database Related
Topic: Another wxSQLite3 Installation Question
Replies: 17
Views: 1504

Re: Another wxSQLite3 Installation Question

For every reason you can think of, I'm not a Windows user. BUT...I have to use it for a time for work-related stuff. For me it is the other way around: most of the time I develop under Windows and seldom under other platforms like Linux. I installed Code::Blocks. I have to admit that I don't know m...
by utelle
Fri Jul 12, 2019 8:46 pm
Forum: wxCode
Topic: wxPdfDocument wich fonts can I use?
Replies: 9
Views: 1389

Re: wxPdfDocument wich fonts can I use?

I added to my code wxPdfFontManager::GetFontManager()->RegisterSystemFonts(); And now all fonts are drawn without '?'-sign. The PDF looks right on Debian too. but after that I have plenty of warnings that some fonts can't be loaded. The problem is that the installed system fonts include also bitmap...
by utelle
Fri Jul 12, 2019 8:39 pm
Forum: wxCode
Topic: wxPdfDocument wich fonts can I use?
Replies: 9
Views: 1389

Re: wxPdfDocument wich fonts can I use?

The fonts foder does exist, I use fonts folder from source files, I'm I right? Installed fonts usually reside in some system folder. Where exactly, depends on the actual operating system. If your application uses specific fonts, it is usually the best approach to provide the required font files tog...
by utelle
Fri Jul 12, 2019 4:27 pm
Forum: wxCode
Topic: wxPdfDocument wich fonts can I use?
Replies: 9
Views: 1389

Re: wxPdfDocument wich fonts can I use?

With wxPdfDocument wich fonts can I use? wxPdfDocument supports the standard PDF fonts (Courier, Times Roman, Helvetica - each in 4 variants: normal/bold/italic/bold-italic; Symbol, and ZapfDingBats). Additionally fonts in the formats Type1, TrueType, and OpenType are supported. The fonts can be in...
by utelle
Sat Jul 06, 2019 1:59 pm
Forum: Database Related
Topic: wxsqlite3 - can it be used in a multi-threaded application
Replies: 8
Views: 1101

Re: wxsqlite3 - can it be used in a multi-threaded application

We have the following lines in our application, and I noticed that when the DB size is very huge (a couple of GBs big), these lines take upto 2 minutes to execute. But, funnily, this happens only the first time the application is run. The next time it takes a few seconds only. In fact, this is not ...
by utelle
Fri Jun 28, 2019 10:15 pm
Forum: Database Related
Topic: wxsqlite3 - can it be used in a multi-threaded application
Replies: 8
Views: 1101

Re: wxsqlite3 - can it be used in a multi-threaded application

Does wxSqlite3 open the DB in serialized mode by default? Yes, the serialized mode (THREADSAFE=1) is the default mode selected at compile time (unless you change the compile time options). That is, it is possible to select at runtime whether a database connection should use multi-thread threading m...
by utelle
Mon Jun 17, 2019 8:22 pm
Forum: wxCode
Topic: wxPdfDocument joining 2 PDF files. Is it possible?
Replies: 6
Views: 1271

Re: wxPdfDocument joining 2 PDF files. Is it possible?

hello, I looked at templates.cpp file before posting. There are only 2 example functions templates1() and templates2() and both functions only open PDF file, add new page and then draw some image/text on new page. Could you, please, give some hint? Function templates2() extracts a page from an exis...
by utelle
Mon Jun 17, 2019 3:56 pm
Forum: wxCode
Topic: wxPdfDocument joining 2 PDF files. Is it possible?
Replies: 6
Views: 1271

Re: wxPdfDocument joining 2 PDF files. Is it possible?

No. This is not completely true. From conversation in this issue : wxPdfDocument is a component for generating PDF documents. It is not a component for parsing, displaying or printing PDF documents. The mentioned issue is related to printing and previewing a PDF file. This is indeed not possible to...
by utelle
Tue Mar 19, 2019 9:21 pm
Forum: Database Related
Topic: complicated select
Replies: 5
Views: 1295

Re: complicated select

Wolfgang wrote:
Tue Mar 19, 2019 1:53 pm
Is there a way to not show duplicates?
Sure. Just add the key word distinct, for example:

Code: Select all

select distinct w1.book, w1.chapter, w1.verse from words w1, words w2
    where w1.book=w2.book and w1.chapter=w2.chapter and abs(w1.vers-w2.vers) <= 3
      and w1.word='test' and w2.word='me';
by utelle
Tue Mar 19, 2019 9:16 pm
Forum: Database Related
Topic: problem with update
Replies: 4
Views: 838

Re: problem with update

Solved with wxInt16 test = oldt.Replace("'", "''"); Sqlite printf did not work It would work if used correctly. There is a difference in the format codes %q and %Q . As described in the SQLite format code Q documentation, "The %Q substitution type also puts single-quotes on both ends of the substit...
by utelle
Mon Mar 18, 2019 7:03 am
Forum: Database Related
Topic: complicated select
Replies: 5
Views: 1295

Re: complicated select

Here a small sample word book chapter vers test 1 1 1 me 1 1 1 test 1 1 2 not 1 1 2 me 2 1 1 test 2 1 1 How would a select look like if I need to find all occourences where word="test" and word="me" and book,chapter and verse are the same. Meaning finding all verses where test and me is in it. If y...
by utelle
Wed Mar 06, 2019 2:55 pm
Forum: wxCode
Topic: wxPdfDoc worning on MAC OSX stattic linking
Replies: 3
Views: 1115

Re: wxPdfDoc worning on MAC OSX stattic linking

hello. Thank you for your time and full explanations I rebuilded wx3.1.3 and I don't have that warning anymore my options are: ../configure --enable-unicode --with-osx_cocoa --with-macosx-version-min=10.14 --with-macosx-sdk=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Develo...
by utelle
Wed Mar 06, 2019 7:56 am
Forum: wxCode
Topic: wxPdfDoc worning on MAC OSX stattic linking
Replies: 3
Views: 1115

Re: wxPdfDoc worning on MAC OSX stattic linking

If I link my somelib.dylib with libwxcode_osx_cocoau_pdfdoc-3.1.a staticcaly, then I get this annoying warning ||warning: direct access in function 'wxLogger::~wxLogger()' from file '/usr/local/lib/libwxcode_osx_cocoau_pdfdoc-3.1.a(pdftemplate.o)' to global weak symbol 'wxStringToNumHashMap_wxImple...
by utelle
Tue Feb 19, 2019 11:11 am
Forum: C++ Development
Topic: Database to show with changing column width
Replies: 37
Views: 3723

Re: Database to show with changing column width

I want the width of the column seperate in each row. That's impossible in any list based control and it sounds like a horrible GUI anyway. And i still don't think you need (or even want) this. Can you make a scribble or something of what you have in mind? Why I cannot quickly think of a better way,...
by utelle
Fri Feb 01, 2019 9:17 am
Forum: Database Related
Topic: wxSQLite3Database* h_dbi[1024] = new wxSQLite3Database();
Replies: 4
Views: 1306

Re: wxSQLite3Database* h_dbi[1024] = new wxSQLite3Database();

With additional informatin like strongs numbers, versenumbers chapter book, and everything inseperate fields, it easily grows to 40mb. And that is for just one translation, furthermore, dictionaries easily go up to 100mb per dictionary. So what?! The theoretical size limit for a SQLite database is ...