Search found 16 matches

by MJaoune
Mon Sep 02, 2019 11:54 am
Forum: Database Related
Topic: How to encrypt DB using wxSQLite3?
Replies: 13
Views: 576

Re: How to encrypt DB using wxSQLite3?

Utelle has released a fixed and this problem is now fully solved in wxSQLite3 v4.4.6 and above.
by MJaoune
Sun Sep 01, 2019 1:21 pm
Forum: Database Related
Topic: How to encrypt DB using wxSQLite3?
Replies: 13
Views: 576

Re: How to encrypt DB using wxSQLite3?

I have returned to the source code of wxSQLite3 and have found that the ReKey function is the same function with or without the cipher, it doesn't even use the cipher parameter: void wxSQLite3Database::ReKey(const wxSQLite3Cipher& cipher, const wxMemoryBuffer& newKey) { #if WXSQLITE3_HAVE_CODEC Chec...
by MJaoune
Sun Sep 01, 2019 12:37 pm
Forum: Database Related
Topic: How to encrypt DB using wxSQLite3?
Replies: 13
Views: 576

Re: How to encrypt DB using wxSQLite3?

If the application, you use to primarily encrypt the database (using Rekey method), passes a wxSQLite3Cipher object to the Rekey method to select a certain cipher, you need to do that for the other applications that expect an encrypted database, too. That exact opposite is happening! When I provide...
by MJaoune
Sun Sep 01, 2019 11:44 am
Forum: Database Related
Topic: How to encrypt DB using wxSQLite3?
Replies: 13
Views: 576

Re: How to encrypt DB using wxSQLite3?

However, I still have the impression that you have a version mixup somehow. For which platforms do you build your applications? 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 cop...
by MJaoune
Sun Sep 01, 2019 10:40 am
Forum: Database Related
Topic: How to encrypt DB using wxSQLite3?
Replies: 13
Views: 576

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. With wxSQLite3 ve...
by MJaoune
Sun Sep 01, 2019 9:47 am
Forum: Database Related
Topic: How to encrypt DB using wxSQLite3?
Replies: 13
Views: 576

Re: How to encrypt DB using wxSQLite3?

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 connection. A few...
by MJaoune
Sun Sep 01, 2019 1:32 am
Forum: Database Related
Topic: How to encrypt DB using wxSQLite3?
Replies: 13
Views: 576

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 ...
by MJaoune
Sat Aug 31, 2019 7:43 pm
Forum: Database Related
Topic: How to encrypt DB using wxSQLite3?
Replies: 13
Views: 576

How to encrypt DB using wxSQLite3?

I am encrypting (AES256) the database file using this code: wxSQLite3Database *db = new wxSQLite3Database(); db->Open("mydb.db"); wxSQLite3CipherAes256 crypt; crypt.InitializeFromGlobalDefault(); db->ReKey(crypt, wxString("My Key")); db->Close(); And I am trying to open it using this code: wxSQLite3...
by MJaoune
Wed Aug 28, 2019 6:26 pm
Forum: C++ Development
Topic: Does AddPrivateFont from wxFont support OTF?
Replies: 1
Views: 81

Does AddPrivateFont from wxFont support OTF?

Hi,

Does the new function "static bool wxFont::AddPrivateFont()" produced in 3.1.1 support OpenType Fonts (OTF) or just TTF?
by MJaoune
Mon Aug 26, 2019 9:05 am
Forum: Platform Related Issues
Topic: UTF8 characters corrupt on GUI in Windows
Replies: 6
Views: 199

Re: UTF8 characters corrupt on GUI in Windows

Have you tried wxString::FromUTF8(literal)? And then use the wxString UTF-8 conversion method to make sure that wxWidgets uses the correct string representation: wxString::FromUTF8("...") Note that no wxT macro is used here. This did it, thanks! I was using "wxT()", I thought it would do such conve...
by MJaoune
Mon Aug 26, 2019 1:35 am
Forum: Platform Related Issues
Topic: UTF8 characters corrupt on GUI in Windows
Replies: 6
Views: 199

Re: UTF8 characters corrupt on GUI in Windows

Kvaz1r wrote:
Sun Aug 25, 2019 8:31 pm
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.
by MJaoune
Sun Aug 25, 2019 8:08 pm
Forum: Platform Related Issues
Topic: UTF8 characters corrupt on GUI in Windows
Replies: 6
Views: 199

UTF8 characters corrupt on GUI in Windows

Hi, I am building an application which has some Arabic in its GUI, however the text appears corrupt and has nothing to do with Arabic (See screenshot). I am using the "u" libraries and have defined "_UNICODE". I am using Visual Studio 2010, and have set "Character Set" to "Use Unicode Character Set"...
by MJaoune
Wed Aug 21, 2019 6:31 pm
Forum: C++ Development
Topic: [wxDC] GetTextExtent doesn't take into consideration screen scaling for font size
Replies: 4
Views: 84

Re: [wxDC] GetTextExtent doesn't take into consideration screen scaling for font size

Other things you could try are wxDisplay::GetPPI() and wxDC::GetPPI(). But i have a feeling all these methods are fed from the same source. Those return 102 PPI, but dividing 102 over 96 doesn't give 1.6. Try asking again on the wx-users mailing list / Google group: https://groups.google.com/forum/...
by MJaoune
Wed Aug 21, 2019 6:03 pm
Forum: C++ Development
Topic: [wxDC] GetTextExtent doesn't take into consideration screen scaling for font size
Replies: 4
Views: 84

Re: [wxDC] GetTextExtent doesn't take into consideration screen scaling for font size

Try wxWindow::GetContentScaleFactor() and/or wxWindow::FromDIP() https://docs.wxwidgets.org/trunk/classwx_window.html#a63b94b3f8428fbab7f3fdf6fdce8b2cf GetContentScaleFactor() is returning 1.00, which is not the real scale factor. FromDIP is always returning "102" no matter what pixel size I provid...
by MJaoune
Tue Aug 20, 2019 8:14 pm
Forum: Announcements and Discoveries
Topic: ANN: wxSQLite3 4.4.5 released
Replies: 2
Views: 576

Re: ANN: wxSQLite3 4.4.5 released

Why wont you implement wxSQLite3 into wxWidgets officially?