Search found 23 matches

by Oleg
Mon Sep 26, 2016 7:32 am
Forum: wxDev-C++
Topic: wxFTP::PWD() error
Replies: 13
Views: 37497

Re: wxFTP::PWD() error

Great! Thanks.
by Oleg
Fri Sep 23, 2016 2:26 pm
Forum: wxDev-C++
Topic: wxFTP::PWD() error
Replies: 13
Views: 37497

Re: wxFTP::PWD() error

OS: Windows 7 Professional x64
Compiler: Microsoft Visual Studio 2013
wxVersion: wxWidgets-3.1.0
ONEEYEMAN wrote:Can you step inside the offending function and see where exactly the crash occurred?
Yes, at this point:
ppointer.png
ppointer.png (30.73 KiB) Viewed 37428 times
by Oleg
Fri Sep 23, 2016 12:32 pm
Forum: wxDev-C++
Topic: wxFTP::PWD() error
Replies: 13
Views: 37497

Re: wxFTP::PWD() error

by Oleg
Fri Sep 23, 2016 11:24 am
Forum: wxDev-C++
Topic: wxFTP::PWD() error
Replies: 13
Views: 37497

Re: wxFTP::PWD() error

Ok, thanks.
by Oleg
Fri Sep 23, 2016 10:30 am
Forum: wxDev-C++
Topic: wxFTP::PWD() error
Replies: 13
Views: 37497

Re: wxFTP::PWD() error

After that step program is going to crash:
ppointer.png
ppointer.png (30.73 KiB) Viewed 37462 times
by Oleg
Fri Sep 23, 2016 8:06 am
Forum: wxDev-C++
Topic: wxFTP::PWD() error
Replies: 13
Views: 37497

Re: wxFTP::PWD() error

@doublemax that is what i have:
last error.png
last error.png (34.1 KiB) Viewed 37469 times
by Oleg
Thu Sep 22, 2016 8:38 pm
Forum: wxDev-C++
Topic: wxFTP::PWD() error
Replies: 13
Views: 37497

Re: wxFTP::PWD() error

Error occurred at: wxString wxFTP::Pwd() { wxString path; if ( CheckCommand(wxT("PWD"), '2') ) { // the result is at least that long if CheckCommand() succeeded wxString::const_iterator p = m_lastResult.begin() + LEN_CODE + 1; if ( *p != wxT('"') ) { wxLogDebug(wxT("Missing start...
by Oleg
Thu Sep 22, 2016 8:16 pm
Forum: wxDev-C++
Topic: wxFTP::PWD() error
Replies: 13
Views: 37497

wxFTP::PWD() error

I am going to use wxFTP to connect to ftp server and get current working directory with this code: wxFTP ftp; ftp.SetUser(wxT("username")); ftp.SetPassword(wxT("password")); if (ftp.Connect("ipaddres")) { std::cout << "Connected" << std::endl; wxString str = f...
by Oleg
Tue Sep 20, 2016 8:29 pm
Forum: C++ Development
Topic: wxListCtrl set application icon
Replies: 14
Views: 3702

Re: wxListCtrl set application icon

Hi, guys. I am trying use system icon in this way (as @catalin told.) This is my code: wxArrayString arr; wxTheMimeTypesManager->EnumAllFileTypes(arr); wxImageList* imageList = new wxImageList(16, 16); imageList->Add(wxArtProvider::GetIcon(wxART_GO_TO_PARENT)); // index = 0; imageList->Add(wxArtProv...
by Oleg
Tue Sep 20, 2016 9:18 am
Forum: C++ Development
Topic: wxListCtrl set application icon
Replies: 14
Views: 3702

Re: wxListCtrl set application icon

Looks like it is better to use wxListCtrl for me. Will solve icon issue as @catalin told.
catalin wrote:I think you should get icons from something like wxTheMimeTypesManager->GetFileTypeFromExtension("pdf")->GetIcon(...);
..but do check against NULL returned wxFileType.
by Oleg
Tue Sep 20, 2016 8:41 am
Forum: C++ Development
Topic: wxListCtrl set application icon
Replies: 14
Views: 3702

Re: wxListCtrl set application icon

As an option i think i can use wxGenericDirCtrl http://docs.wxwidgets.org/trunk/classwx ... _ctrl.html but this control also does not support additional colums. So, i guess it is better to use wxListCtrl. Guys, what do you think about this?
by Oleg
Tue Sep 20, 2016 8:31 am
Forum: C++ Development
Topic: wxListCtrl set application icon
Replies: 14
Views: 3702

Re: wxListCtrl set application icon

So, i built sample. And now a have next question: Is it possible to add additional columns to wxFileCtrl like (ext, date etc..)? and remove fields shown on screenshot?
show_to.png
I do not see any options or styles in order to do that.
by Oleg
Tue Sep 20, 2016 8:06 am
Forum: C++ Development
Topic: wxListCtrl set application icon
Replies: 14
Views: 3702

Re: wxListCtrl set application icon

@Oleg: I hope you knew about wxFileCtrl and didn't duplicate all its functionality. http://docs.wxwidgets.org/trunk/classwx_file_ctrl.html Is it possible to create something like that? like_that.png Note. I need not to create file/directory chooser dialog. I need to create a list of file like it do...
by Oleg
Mon Sep 19, 2016 7:39 pm
Forum: C++ Development
Topic: wxListCtrl set application icon
Replies: 14
Views: 3702

wxListCtrl set application icon

I am going to use wxListCtrl http://docs.wxwidgets.org/trunk/classwx_list_ctrl.html in order to list directory files. List has been created successfully. And now i am going to show file's icon. I have set icon with wxArtProvider http://docs.wxwidgets.org/trunk/classwx_art_provider.html , and have go...
by Oleg
Tue Sep 13, 2016 7:48 am
Forum: C++ Development
Topic: Disable vertical scroll bar in wxListCtrl?
Replies: 2
Views: 1231

Re: Disable vertical scroll bar in wxListCtrl?

Thanks i will try it.