Search found 237 matches

by dkaip
Sat Mar 07, 2020 5:09 pm
Forum: wxCode
Topic: Construct sqlcipher sqlite files for minimal.
Replies: 7
Views: 591

Re: Construct sqlcipher sqlite files for minimal.

Hello. Suppose i have the code bellow ... wxSQLite3Database* initDB(void) { wxString testDBName = wxS("dub.db"); wxSQLite3Database* db = new wxSQLite3Database(); db->Open(testDBName); if (!wxFileExists(testDBName)) { db->UserAdd(wxS("user"), wxS("pswd"), true); db->UserLogin(wxS("user"), wxS("pswd")...
by dkaip
Tue Feb 25, 2020 6:57 am
Forum: wxCode
Topic: Construct sqlcipher sqlite files for minimal.
Replies: 7
Views: 591

Re: Construct sqlcipher sqlite files for minimal.

There is a practical example to construct for example sqlcipher-1.1.8-testkey.db or other file?
Thank you
Jim.
by dkaip
Sun Feb 23, 2020 5:23 pm
Forum: wxCode
Topic: Construct sqlcipher sqlite files for minimal.
Replies: 7
Views: 591

Re: Construct sqlcipher sqlite files for minimal.

Can add this library to wxSQLite3 lib to have the ability to construct cipher databases?

Thank you
Jim.
by dkaip
Sun Feb 23, 2020 1:41 pm
Forum: wxCode
Topic: Construct sqlcipher sqlite files for minimal.
Replies: 7
Views: 591

Construct sqlcipher sqlite files for minimal.

Hello. How i can construct sqlcipher-1.1.8-testkey.db file? As i see with minimal all sqlcipher files don't construct from scratch but there are in samples folder. There is a way to make these files? Thank you. Jim. *BTW run minimal from sources with C::B on Linux Mint. I can not try to Windows get....
by dkaip
Sun Feb 09, 2020 9:12 pm
Forum: C++ Development
Topic: Error in remove empty dirs
Replies: 3
Views: 123

Re: Error in remove empty dirs

In code wxString where; { wxDirDialog* openDirDialog = new wxDirDialog(NULL, "Choose directory ", "", wxDD_DEFAULT_STYLE | wxDD_DIR_MUST_EXIST); if (openDirDialog->ShowModal() == wxID_OK)where = openDirDialog->GetPath(); else return; wxFileName::Rmdir(where, wxPATH_RMDIR_FULL); } i am taking error ....
by dkaip
Sat Feb 08, 2020 5:22 pm
Forum: C++ Development
Topic: Error in remove empty dirs
Replies: 3
Views: 123

Error in remove empty dirs

Hello.
I am trying to delete recursive empty dirs but taking error that there are not exist.

Code: Select all

 wxString where-wxT("a dir of mine")
        wxMessageBox(where+wxFileName::GetPathSeparator());
        wxFileName::Rmdir(where, wxPATH_RMDIR_FULL);
I don’t know why.
Thank you
Jim.
by dkaip
Fri Feb 07, 2020 12:56 pm
Forum: C++ Development
Topic: Wrong place of panel
Replies: 9
Views: 202

Re: Wrong place of panel

Sorry, i forgot beak.
Code is experiment in panels.
Very few times i have use switch.
Thank you
Jim.
by dkaip
Fri Feb 07, 2020 12:40 pm
Forum: C++ Development
Topic: Take only dirs and subdirs
Replies: 7
Views: 153

Re: Take only dirs and subdirs

But there no a wxWidgets function to do native?
Thank you very mach.
Jim.
by dkaip
Thu Feb 06, 2020 10:10 pm
Forum: C++ Development
Topic: Take only dirs and subdirs
Replies: 7
Views: 153

Take only dirs and subdirs

With code bellow i am taking only all files in dirs. I am trying to take all dirs and subdirs from a parent dir. How i can change code to take only dirs? wxString where; { wxDirDialog* openDirDialog = new wxDirDialog(NULL, "Choose directory ", "", wxDD_DEFAULT_STYLE | wxDD_DIR_MUST_EXIST); if (openD...
by dkaip
Thu Feb 06, 2020 7:51 pm
Forum: C++ Development
Topic: Wrong place of panel
Replies: 9
Views: 202

Re: Wrong place of panel

Sorry, it don’t work well. In constructor i have. panel1= new panel(this); panel2= new panel(this); bSizer9->Add(panel1, 0, wxALL|wxEXPAND, 5 ); bSizer9->Add(panel2, 0, wxALL|wxEXPAND, 5 ); panel2->Hide(); bSizer9->Layout(); In a function i have panel1->Hide(); panel2->Hide(); switch (id_choice) { c...
by dkaip
Thu Feb 06, 2020 7:34 pm
Forum: C++ Development
Topic: Intersection of two lists of files
Replies: 6
Views: 198

Re: Intersection of two lists of files

I don’t know how to do this.
I have no experience using maps.
Thank you
Jim.
by dkaip
Tue Feb 04, 2020 8:13 pm
Forum: C++ Development
Topic: Intersection of two lists of files
Replies: 6
Views: 198

Re: Intersection of two lists of files

Ok vector is the good approach. But maybe is the expensive process? I will follow vector. But for knowledge std::list use < operator first for sorting and after that make intersection. Suppose that two files have the exact same time and size but different name, or the same file is in many folders. H...
by dkaip
Tue Feb 04, 2020 5:08 am
Forum: C++ Development
Topic: Intersection of two lists of files
Replies: 6
Views: 198

Intersection of two lists of files

Hello. I have two lists of files, left and right. I am trying to take the intersection of files. The files are in different folders. class file { public: wxString name; wxString dir; wxLongLong size; wxDateTime time; bool operator<(file const & b) const { wxString tmp1=name+wxString::Format(wxT("%d"...
by dkaip
Mon Feb 03, 2020 6:17 am
Forum: C++ Development
Topic: Wrong place of panel
Replies: 9
Views: 202

Re: Wrong place of panel

Hello.
Now works fine with Hide() and Show() functions.
Thank you very much.
Jim.
by dkaip
Sun Feb 02, 2020 5:16 pm
Forum: C++ Development
Topic: Wrong place of panel
Replies: 9
Views: 202

Re: Wrong place of panel

Hello Madding two or more wxPanels in header file(private) there are showing on wxWindow, even if i Detach them and call Layout(). panel1* p1= new panel1(this); panel2* p2= new panel2(this); How i can see only first of them? At second time i can Detach and Layout() first to see second panel. I have ...