Search found 889 matches

by utelle
Sun Sep 01, 2019 12:27 pm
Forum: Database Related
Topic: How to encrypt DB using wxSQLite3?
Replies: 13
Views: 1165

Re: How to encrypt DB using wxSQLite3?

Linux using wxGTK 3.0.4 (GTK3), wxSQLite3 4.4.5 (Shared). And Windows 7, wxMSW 3.1.2 (VC9), wxSQLite3 4.4.5 (Static). But the problem exists in the same platform, as I copy the encrypted DB files to another application in the same platform. The problem that is platform dependent is when I do not pr...
by utelle
Sun Sep 01, 2019 11:15 am
Forum: Database Related
Topic: How to encrypt DB using wxSQLite3?
Replies: 13
Views: 1165

Re: How to encrypt DB using wxSQLite3?

I'm not sure whether I fully understand what exactly you are doing. If I understand you correctly you call the wxSQLite3 Open method without explicitly passing a wxSQLite3Cipher object, but with giving the encryption key. And that works on some systems, but on others not. Exactly. Well, this strong...
by utelle
Sun Sep 01, 2019 10:35 am
Forum: Database Related
Topic: How to encrypt DB using wxSQLite3?
Replies: 13
Views: 1165

Re: How to encrypt DB using wxSQLite3?

How big is the database file? A few hundred megabytes. What do you do with the rekeyed database file? Do you copy it to a different folder for processing by the other application? If the answer is no, how do you know when to rekey/encrypt a plain database file? The encrypting application is only fo...
by utelle
Sun Sep 01, 2019 7:40 am
Forum: Database Related
Topic: How to encrypt DB using wxSQLite3?
Replies: 13
Views: 1165

Re: How to encrypt DB using wxSQLite3?

1- Existing. How big is the database file? Encrypting a large database can be a time-consuming operation, and the encrypted database can only be accessed after the rekey operation has completed. While the rekey operation is running, you must not access the database file from any other database conn...
by utelle
Sat Aug 31, 2019 10:33 pm
Forum: Database Related
Topic: How to encrypt DB using wxSQLite3?
Replies: 13
Views: 1165

Re: How to encrypt DB using wxSQLite3?

In principle, your code should work. However, from your code snippets several things don't become clear: Are you encrypting an existing database or creating an empty database on which you apply encryption in the first step? Is the first step (applying the Rekey method) part of the same application a...
by utelle
Mon Aug 26, 2019 6:47 am
Forum: Platform Related Issues
Topic: UTF8 characters corrupt on GUI in Windows
Replies: 6
Views: 204

Re: UTF8 characters corrupt on GUI in Windows

Are your sure that VisualStudio use utf8 encoding for file? Well how do I check? The strings look normal in the Visual Studio IDE, also, I haven't created the files in VS, but in another text editor and then added those files to the VS project. Visual Studio usually offers to save a source file as ...
by utelle
Tue Aug 20, 2019 9:59 pm
Forum: Announcements and Discoveries
Topic: ANN: wxSQLite3 4.4.5 released
Replies: 2
Views: 810

Re: ANN: wxSQLite3 4.4.5 released

Why wont you implement wxSQLite3 into wxWidgets officially? Well, the main focus of wxWidgets lies on providing GUI functionality. Therefore the wxWidgets core developers are reluctant to add non-GUI components. In an earlier version of wxWidgets an ODBC component was part of the core library, but ...
by utelle
Thu Aug 08, 2019 7:43 pm
Forum: Announcements and Discoveries
Topic: ANN: wxSQLite3 4.4.5 released
Replies: 2
Views: 810

ANN: wxSQLite3 4.4.5 released

Version 4.4.5 of wxSQLite3 has been released. It supports version 3.29.0 of SQLite . This version is compatible with wxWidgets 2.8.12, wxWidgets 3.0.x, and wxWidgets 3.1.x. What's new in this release Upgrade to SQLite version 3.29.0 Added SQLite logging support Added build support for VS2019 Added C...
by utelle
Thu Aug 01, 2019 3:27 pm
Forum: wxCode
Topic: draw rotated bitmap with wxGCDC
Replies: 17
Views: 865

Re: draw rotated bitmap with wxGCDC

Unfortunately, the sample file is missing from the post. maybe it works this time, only attached and not placed inline? Yes, it worked. - AFAIK the forum supports only attachments not inline graphics. But like I wrote, I do not need this anymore, rotating the whole wxPdcDocument works great and lea...
by utelle
Thu Aug 01, 2019 1:35 pm
Forum: wxCode
Topic: draw rotated bitmap with wxGCDC
Replies: 17
Views: 865

Re: draw rotated bitmap with wxGCDC

Could you show a sample drawing? Here is one, it is 600dpi, only the circles bitmap took 7.7 seconds to draw to wxPdfDC. As you can see not everything on the page needs to be rotated. sampleOver7sec.zip Unfortunately, the sample file is missing from the post. :( I still think that creating a PDF te...
by utelle
Wed Jul 31, 2019 6:05 pm
Forum: wxCode
Topic: draw rotated bitmap with wxGCDC
Replies: 17
Views: 865

Re: draw rotated bitmap with wxGCDC

So I could reduce draw time by reducing the resolution (obviously), but I noticed one funny thing: wxMask does only work in my app 209dpi upwards. This is not the case with the sample code in the previous post. Is there any restriction, maybe bitmap size? Sorry, I don't know the answer to this ques...
by utelle
Wed Jul 31, 2019 5:59 pm
Forum: wxCode
Topic: draw rotated bitmap with wxGCDC
Replies: 17
Views: 865

Re: draw rotated bitmap with wxGCDC

You may have reasons for your approach to create a bitmap of a whole page first, but then you don't take advantage of the PDF vector drawing capabilities. Well, yes, as we discussed in this thread, I need to rotate everything I draw, but wxPdfDC does not support wxGCDC so I have to use wxGCDC with ...
by utelle
Wed Jul 31, 2019 11:39 am
Forum: wxCode
Topic: draw rotated bitmap with wxGCDC
Replies: 17
Views: 865

Re: draw rotated bitmap with wxGCDC

Hmmmm, the pdf hast a 600dpi resolution, so a standard din a 4 page results in this bitmap size. In fact, PDF files don't have a single DPI value, because PDF is a vector format. That is, vector objects like text have no resolution at all. Only bitmap objects have an associated resolution. Generati...
by utelle
Wed Jul 31, 2019 9:09 am
Forum: wxCode
Topic: draw rotated bitmap with wxGCDC
Replies: 17
Views: 865

Re: draw rotated bitmap with wxGCDC

One more question about wxPdfDC: DrawBitmap takes ~7 seconds for a 4700x5800px bitmap. Is there any way to speed it up? Well, your bitmap seems to be rather large. And unfortunately bitmaps can't be transferred to PDF directly. They have to be converted to a known graphics format like PNG or JPEG. ...
by utelle
Mon Jul 29, 2019 8:39 pm
Forum: wxCode
Topic: wxPdfDocument wich fonts can I use?
Replies: 9
Views: 356

Re: wxPdfDocument wich fonts can I use?

The problem is that the installed system fonts include also bitmap fonts which can't be used by wxPdfDocument. The wxPdfFontManager emits warning messages, when it tries to register such a bitmap font. When registering a single font file it is certainly useful to get a warning message on registerin...