User Activity

  • Posted a comment on ticket #36 on Win32++

    I'm sorry but now GetNextPathName() doesn't work properly and returns only the first filename. pos parameter is immediately set to -1 after the first call... I've double-checked if my extended buffer size is set correctly (10000 * MAX_PATH). It seems that the introduced string copy buffer optimization prevents detecting other files...

  • Posted a comment on ticket #36 on Win32++

    Sorry, I've missed Get/SetParameters(). Since other options, like Filter, have their own SetFilter() setter, I thought a buffer setter method could fit to avoid get-customize-set steps; anyway this is perfect for my needs. Keep up the good work. Claudio

  • Modified a comment on ticket #36 on Win32++

    Another suggestion: I've changed your hardcoded nMaxFile value up to 10000*MAX_PATH and, after that, calls to GetNextPathName() became awfully slow because of the last line below: inline CString CFileDialog::GetNextPathName(int& pos) const // Return the next file path name from a group of files selected. The // OFN_ALLOWMULTISELECT flag allows multiple files to be selected. Use pos = 0 // to retrieve the first file. The pos parameter is updated to point to the // next file name. The pos parameter...

  • Modified a comment on ticket #36 on Win32++

    Another suggestion: I've changed your hardcoded nMaxFile value up to 10000*MAX_PATH and, after that, calls to GetNextPathName() became awfully slow because of the last line below: inline CString CFileDialog::GetNextPathName(int& pos) const // Return the next file path name from a group of files selected. The // OFN_ALLOWMULTISELECT flag allows multiple files to be selected. Use pos = 0 // to retrieve the first file. The pos parameter is updated to point to the // next file name. The pos parameter...

  • Modified a comment on ticket #36 on Win32++

    Another suggestion: I've changed your hardcoded nMaxFile value up to 10000*MAX_PATH and, after that, calls to GetNextPathName() became awfully slow because of the string copy done at each call: inline CString CFileDialog::GetNextPathName(int& pos) const // Return the next file path name from a group of files selected. The // OFN_ALLOWMULTISELECT flag allows multiple files to be selected. Use pos = 0 // to retrieve the first file. The pos parameter is updated to point to the // next file name. The...

  • Posted a comment on ticket #36 on Win32++

    Another suggestion: I've changed your hardcoded nMaxFile value up to 10000*MAX_PATH and, after that, calls to GetNextPathName() became awfully slow because of the string copy done at each call: inline CString CFileDialog::GetNextPathName(int& pos) const // Return the next file path name from a group of files selected. The // OFN_ALLOWMULTISELECT flag allows multiple files to be selected. Use pos = 0 // to retrieve the first file. The pos parameter is updated to point to the // next file name. The...

  • Modified a comment on ticket #36 on Win32++

    Thanks for fixing it (I haven't thought about .ReleaseBuffer(...) call). Now there should be a way for the caller to "hint" for the expected maximum number of selected files, based on specific usage. Actually it's hard coded to 256 files, but sometimes this could not be enough; think about a folder full of pictures or mp3s where the user could easily select them all with a CTRL+A. (easy) expose m_OFN.nMaxFile through a method or adding another optional parameter to DoModal(). (hard) add some kind...

  • Modified a comment on ticket #36 on Win32++

    Thanks for fixing it (I haven't thought about .ReleaseBuffer(...) call). Now there should be a way for the caller to "hint" for the expected maximum number of selected files, based on specific usage. Actually it's hard coded to 256 files, but sometimes this could not be enough; think about a folder full of pictures or mp3s where the user could easily select them all with a CTRL+A. (easy) expose m_OFN.nMaxFile through a method or adding another optional parameter to DoModal(). (hard) add some kind...

View All

Personal Data

Username:
nicorac
Joined:
2004-01-27 10:26:23

Projects

Skills

  • No skills entered.

Personal Tools