Re: CFileDialog multi selection buffer!!!????



What method are you using to get all the filenames???
You need to use CFileDialog::GetStartPosition() and
CFileDialog::GetNextPathName() to get multiple selections.

AliR.

"Ale" <Ale@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:D715F499-D648-424C-B7EF-AA798CF9C0E7@xxxxxxxxxxxxxxxx
> Hi all,
> using CFileDialog with MULTISLECT you need to allocate a buffer larger
> enoght to store returnet file path list, if buffer is not larger enought
> DoModal will return the specific error...
> Now, how to get the buffer size needed before calling DoModa or during
> selectionl!?
> How do Windows handle this issue!!?
>
> Thanks
> Ale


.



Relevant Pages

  • Re: CFileDialog multi selection buffer!!!????
    ... In any cases i've allocated a buffer large enought to store so many files ... > CFileDialog::GetNextPathNameto get multiple selections. ... >> using CFileDialog with MULTISLECT you need to allocate a buffer larger ... how to get the buffer size needed before calling DoModa or during ...
    (microsoft.public.vc.mfc)
  • Re: CFileDialog multi selection buffer!!!????
    ... > using CFileDialog with MULTISLECT you need to allocate a buffer larger ... > enoght to store returnet file path list, if buffer is not larger enought ... how to get the buffer size needed before calling DoModa or during ...
    (microsoft.public.vc.mfc)