Search found 166 matches

by tomay3000
Sat Jun 20, 2020 10:33 am
Forum: General Development
Topic: wx support to some feature
Replies: 5
Views: 1077

Re: wx support to some feature

Better come late than never. 3) perform some action when a video in on a specific second/interval of time This is possible using wxVLC: The static function: void OnPositionChanged_VLC(const libvlc_event_t *event, void *data) { wxVLCFrame *mainFrame = ((wxVLCFrame *)wxGetApp().GetTopWindow()); mainFr...
by tomay3000
Tue May 05, 2020 7:38 pm
Forum: C++ Development
Topic: wxFileOutputStream will fail if the directory doesn't exist!
Replies: 4
Views: 255

Re: wxFileOutputStream will fail if the directory doesn't exist!

doublemax wrote:
Tue May 05, 2020 5:51 am
If the flags contain wxPATH_MKDIR_FULL flag, try to create each directory in the path and also don't return an error if the target directory already exists.
My bad, I haven't read that description to the end.
by tomay3000
Tue May 05, 2020 1:02 am
Forum: C++ Development
Topic: wxFileOutputStream will fail if the directory doesn't exist!
Replies: 4
Views: 255

Re: wxFileOutputStream will fail if the directory doesn't exist!

wxFileName::Mkdir() with wxPATH_MKDIR_FULL flag can help with that Thank you, wxFileName::Mkdir with wxPATH_MKDIR_FULL flag is really handy, the question is: should I test for that directory existence before!? using wxDirExists or it is done internally in wxFileName::Mkdir implementation! I need to...
by tomay3000
Mon May 04, 2020 10:42 am
Forum: C++ Development
Topic: wxFileOutputStream will fail if the directory doesn't exist!
Replies: 4
Views: 255

wxFileOutputStream will fail if the directory doesn't exist!

Hello, When creating a file using wxFileOutputStream and the directory in which this file will be created doesn't exist in the first place, then wxFileOutputStream::IsOk will return false and the file won't be created of course. Is this the intended behavior? because nothing is said in the documenta...
by tomay3000
Sun May 03, 2020 7:03 am
Forum: C++ Development
Topic: How to wxDir::GetAllFiles for multiple filespec criterias!
Replies: 1
Views: 120

How to wxDir::GetAllFiles for multiple filespec criterias!

Hello, I need to call wxDir::GetAllFiles for multiple filespec criterias, I thought about calling it multiple times for each filespec criteria since from the documentation it preserves the old content of wxArrayString * files , but this will imply performance issues, because the traversal will be re...
by tomay3000
Mon Apr 27, 2020 10:14 pm
Forum: C++ Development
Topic: How to pass file name list as a function parameter!?
Replies: 8
Views: 281

Re: How to pass file name list as a function parameter!?

I mean something more straightforward: wxArrayString arrStrFileNames; arrStrFileNames.assign(vStrFileNames.begin(), vStrFileNames.end());//from std::vector<> std::vector<wxString> vec(arrStrFileNames.begin(), arrStrFileNames.end());//from wxArrayString I completely missed that. Thank you again.
by tomay3000
Mon Apr 27, 2020 8:22 pm
Forum: C++ Development
Topic: How to pass file name list as a function parameter!?
Replies: 8
Views: 281

Re: How to pass file name list as a function parameter!?

Both class provide iterators so you can use them to create another container. I just figured it out: std::vector<wxString> vStrFileNames; wxArrayString arrStrFileNames; for (wxArrayString::const_iterator it = arrStrFileNames.begin(); it != arrStrFileNames.end(); ++it) vStrFileNames.push_back(*it); ...
by tomay3000
Mon Apr 27, 2020 7:15 pm
Forum: C++ Development
Topic: How to pass file name list as a function parameter!?
Replies: 8
Views: 281

Re: How to pass file name list as a function parameter!?

Hi, The strings vector seems much easier. Also, depending on the scenario you might use const vector... Thank you. I completely forgot about const , also there are situations where I need to convert from a wxArrayString to an std::vector and vice versa, so are there any predefined helper macros to ...
by tomay3000
Mon Apr 27, 2020 6:26 pm
Forum: C++ Development
Topic: How to pass file name list as a function parameter!?
Replies: 8
Views: 281

Re: How to pass file name list as a function parameter!?

Kvaz1r wrote:
Sun Apr 26, 2020 8:29 pm
Why are you want to use reference and not value type? You can share vector via wxSharedPtr<> instead or not share anything at all.
I need a list of wxString or wxFileName to be passed as a function parameter.
by tomay3000
Sun Apr 26, 2020 5:50 pm
Forum: C++ Development
Topic: How to pass file name list as a function parameter!?
Replies: 8
Views: 281

How to pass file name list as a function parameter!?

Hello, I am writing a Zip compress and extract utility, and I need to pass file name list as a function parameter, So, should I use: std::vector<wxString>& vstrFileNames // Correct me here about the reference passing if I am wrong. Or: std::vector<wxFileName>& vstrFileNames // Correct me here about ...
by tomay3000
Wed Jan 29, 2020 1:16 pm
Forum: General Development
Topic: How to convert a .DOCX file to an .HTML one using C or C++?
Replies: 0
Views: 576

How to convert a .DOCX file to an .HTML one using C or C++?

Hello, I need a simple way using C or C++ to convert a .DOCX file to .HTML one. Any hint, open-source if possible lightweight library or simply just the code that does the conversion would be appreciated. I just need it for reporting. My main C++ library is wxWidgets that offers only HTML for report...
by tomay3000
Tue Nov 12, 2019 1:15 pm
Forum: Announcements and Discoveries
Topic: [ANN] SOCI database access library v4.0.0 is released
Replies: 0
Views: 1239

[ANN] SOCI database access library v4.0.0 is released

Hello,
Even though SOCI is not wxWidgets direct relative library, but it is used by many wxWidgets applications.

I just thought after more than 4 years of waiting for this release, it is worth it to announce it here.
Check it out here: https://github.com/SOCI/soci/releases

Thank you.
by tomay3000
Sun Nov 10, 2019 9:46 pm
Forum: General Development
Topic: Is there any chance that wxWidgets will use its own renderer to draw its own controls like Qt in the future!?
Replies: 6
Views: 957

Re: Is there any chance that wxWidgets will use its own renderer to draw its own controls like Qt in the future!?

Latest trunk have wxQT port that have been under quiet development. Did you check it? That doesn't mean it is wx own drawing (it is only a third party). Your question ends with Like QT.. By saying like Qt, I meant similar to Qt but proprietary to wxWidgets using its maintained and performant render...
by tomay3000
Sat Nov 09, 2019 5:52 pm
Forum: General Development
Topic: Is there any chance that wxWidgets will use its own renderer to draw its own controls like Qt in the future!?
Replies: 6
Views: 957

Re: Is there any chance that wxWidgets will use its own renderer to draw its own controls like Qt in the future!?

evstevemd wrote:
Sat Nov 09, 2019 7:30 am
Latest trunk have wxQT port that have been under quiet development. Did you check it?
That doesn't mean it is wx own drawing (it is only a third party).
by tomay3000
Mon Oct 28, 2019 12:54 pm
Forum: Announcements and Discoveries
Topic: [ANN] wxWidgets v3.1.3 release is out.
Replies: 0
Views: 1383

[ANN] wxWidgets v3.1.3 release is out.

Hello,
I just want to announce that wxWidgets v3.1.3 release is out today.
https://github.com/wxWidgets/wxWidgets/releases

Thank you.