Search found 197 matches

by dkaip
Sat Oct 13, 2018 11:24 am
Forum: wxCode
Topic: Help for wxPDFView builng on windows 10
Replies: 0
Views: 61

Help for wxPDFView builng on windows 10

Hello. I am trying to follow step by step instructions at https://github.com/TcT2k/wxPDFView to build wxPDFView, but i making something wrong, i don't know what is it. A help please to a newbie to this. Thank you. Jim. --------------------------------- mkdir pdfium cd pdfium set DEPOT_TOOLS_WIN_TOOL...
by dkaip
Sat Sep 29, 2018 7:06 pm
Forum: wxCode
Topic: Making wxPDFView library
Replies: 0
Views: 75

Making wxPDFView library

Hello. I am trying to making wxPDFView lib in Linux and Windows So Pdfium lib instructions for Linux are exactly as bellow. Linux Mint OS Repository: https://pdfium.googlesource.com/pdfium/ download depot_tools ---------------- git clone https://chromium.googlesource.com/chromium/tools/depot_tools.g...
by dkaip
Thu Sep 27, 2018 8:51 am
Forum: C++ Development
Topic: wxCopyFile when dir dont exist.
Replies: 11
Views: 171

Re: wxCopyFile when dir dont exist.

Ok it works as PB make.
The method is wxFileName(("/home/a/home/a/myfolder/")).Mkdir(wxS_DIR_DEFAULT,wxPATH_MKDIR_FULL);
If / don’t exist at first then puts home/a/home/a/myfolder in current dir.
If / don’t exist at last the myfolder dir dont make it.

Thank you.
Jim.
by dkaip
Thu Sep 27, 2018 7:22 am
Forum: C++ Development
Topic: wxCopyFile when dir dont exist.
Replies: 11
Views: 171

Re: wxCopyFile when dir dont exist.

Ok my wrong, i am new to wxWidgets. I will make as you say. So i make it and nothing happens(there are no permissions issues). Maybe because some directories have Unicode characters? Trying wxMessageBox(dirName); take /home/a/Βίντεο/home/a/Επιφάνεια εργασίας There is some problem maybe with Unicode....
by dkaip
Thu Sep 27, 2018 6:58 am
Forum: C++ Development
Topic: wxCopyFile when dir dont exist.
Replies: 11
Views: 171

Re: wxCopyFile when dir dont exist.

What is the joke? I don’t understand, really. I am try to make a clone of a file in other place, relative to existing dir(/home/a/video). The file is at /home/a/Desktop/folder/to/. All that for non destructive process. I is really important to construct the new directory and then copy the file. The ...
by dkaip
Wed Sep 26, 2018 6:05 am
Forum: C++ Development
Topic: wxCopyFile when dir dont exist.
Replies: 11
Views: 171

Re: wxCopyFile when dir dont exist.

My program runs in /home/a/myfolder/ and i want to make the dir...
dirName=/home/a/video/home/a/Desktop/folder/to/
but wxMkdir(dirName,wxPATH_MKDIR_FULL) don’t makes it.
What i have wrong?
by dkaip
Tue Sep 25, 2018 6:15 pm
Forum: C++ Development
Topic: wxCopyFile when dir dont exist.
Replies: 11
Views: 171

Re: wxCopyFile when dir dont exist.

Yes this is the way. But dirName is like dri1/dir2/dir3 ... and as i see wxMkdir dont make subdirs...
Only if dirName is only one dir name.
Thank you
Jim

Code: Select all

    wxFileName xx(dest);
    wxString dirName =xx.GetPath();
    if (!wxDirExists(dirName))
        wxMkdir(dirName);
by dkaip
Tue Sep 25, 2018 3:30 pm
Forum: C++ Development
Topic: wxCopyFile when dir dont exist.
Replies: 11
Views: 171

wxCopyFile when dir dont exist.

Hello. If i have wxCopyFile(source, dest) and dir of destination file don’t exist, wxCopyFile can make destination dir automatically?
Thank you.
Jim
by dkaip
Sun Sep 16, 2018 9:38 pm
Forum: C++ Development
Topic: Delete an item from wxListCtrl.
Replies: 10
Views: 236

Re: Delete an item from wxListCtrl.

In Linux wxWidgets lib must have problem.
It must works on both OS.
Thank you
Jim.
by dkaip
Sun Sep 16, 2018 11:27 am
Forum: C++ Development
Topic: Delete an item from wxListCtrl.
Replies: 10
Views: 236

Re: Delete an item from wxListCtrl.

For PB code i take error when pick an item... Is library's bug? /usr/include/wx-3.0/wx/strvararg.h(456): assert "(argtype & (wxFormatStringSpecifier<T>::value)) == argtype" failed in wxArgNormalizer(): format specifier doesn't match argument type But when disable code // wxLogMessage(&...
by dkaip
Sun Sep 16, 2018 11:21 am
Forum: C++ Development
Topic: Delete an item from wxListCtrl.
Replies: 10
Views: 236

Re: Delete an item from wxListCtrl.

Hello.
I upload the code, is from zetcode example.
Thank you
Jim
by dkaip
Sun Sep 16, 2018 4:31 am
Forum: C++ Development
Topic: Delete an item from wxListCtrl.
Replies: 10
Views: 236

Re: Delete an item from wxListCtrl.

Yes this is line with problem. I assume the line that causes the problem is: m_lc2->DeleteItem(i); Supposse m_lc2 has 2 objects, and click to first i take i=0 and j=2. But i<j and proplem is the same. Is problem of library? I use wxWidgets3.0.3 stable. Even using DeleteAllItems () i have the same pr...
by dkaip
Sat Sep 15, 2018 1:15 pm
Forum: C++ Development
Topic: Delete an item from wxListCtrl.
Replies: 10
Views: 236

Delete an item from wxListCtrl.

Hello in code bellow i am trying to delete items from wxListCtrl, but i take an error on OnSelectItem, last line. The pos i of item is ok. ../include/wx/dynarray.h(838): assert "uiIndex < m_nCount" failed in Item(). Thank you Jim. TextDrop::TextDrop(const wxString& title) : wxFrame(NUL...
by dkaip
Mon Aug 27, 2018 9:24 pm
Forum: wxCode
Topic: Problem inserting a certain pdf file.
Replies: 1
Views: 92

Problem inserting a certain pdf file.

Hello. In certain pdf file that i upload there is problem inserting the page.
../src/common/mstream.cpp(196): assert "buffer" failed in CopyTo(): must have buffer to CopyTo


Code: Select all

        int tpl = pdfile.ImportPage(1);


Thank you.
Jim
by dkaip
Mon Aug 27, 2018 9:19 pm
Forum: wxCode
Topic: Rotate a wxpdfdoc page
Replies: 3
Views: 185

Re: Rotate a wxpdfdoc page

Hello, i am looking is for editing with easy way, without add page, making a new pdf.
Thank you for your answer.
Jim

Go to advanced search