Click here to Skip to main content
15,912,205 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralCFileDialog Pin
john563224-Apr-08 19:59
john563224-Apr-08 19:59 
GeneralRe: CFileDialog Pin
Naveen24-Apr-08 20:58
Naveen24-Apr-08 20:58 
GeneralRe: CFileDialog Pin
john563224-Apr-08 21:53
john563224-Apr-08 21:53 
GeneralRe: CFileDialog Pin
Naveen24-Apr-08 23:18
Naveen24-Apr-08 23:18 
GeneralRe: CFileDialog Pin
Hamid_RT24-Apr-08 21:02
Hamid_RT24-Apr-08 21:02 
GeneralRe: CFileDialog Pin
Saurabh.Garg24-Apr-08 22:13
Saurabh.Garg24-Apr-08 22:13 
GeneralRe: CFileDialog Pin
john563224-Apr-08 23:18
john563224-Apr-08 23:18 
GeneralRe: CFileDialog Pin
krmed25-Apr-08 0:42
krmed25-Apr-08 0:42 
If the number of files you select is causing it to fail, then your buffer is probably too small. With a buffer of 4096 and 160 files, that's only 25 characters per file.

Acccording to MSDN:

If the buffer is too small, the function returns FALSE and the CommDlgExtendedError function returns FNERR_BUFFERTOOSMALL. In this case, the first two bytes of the lpstrFile buffer contain the required size, in bytes or characters.

Hope that helps.

Karl - WK5M
PP-ASEL-IA (N43CS)
PGP Key: 0xDB02E193
PGP Key Fingerprint: 8F06 5A2E 2735 892B 821C 871A 0411 94EA DB02 E193

GeneralRe: CFileDialog Pin
Saurabh.Garg25-Apr-08 2:25
Saurabh.Garg25-Apr-08 2:25 
GeneralRe: CFileDialog Pin
Saurabh.Garg25-Apr-08 2:22
Saurabh.Garg25-Apr-08 2:22 
GeneralRe: CFileDialog Pin
Saurabh.Garg24-Apr-08 22:27
Saurabh.Garg24-Apr-08 22:27 
GeneralRe: CFileDialog Pin
Nitheesh George24-Apr-08 22:59
Nitheesh George24-Apr-08 22:59 
QuestionRe: CFileDialog Pin
David Crow25-Apr-08 3:39
David Crow25-Apr-08 3:39 
GeneralRe: CFileDialog Pin
Michael Schubert25-Apr-08 4:40
Michael Schubert25-Apr-08 4:40 
GeneralNeed solution for WSAEWOULDBLOCK Pin
yaminisridaran24-Apr-08 19:49
yaminisridaran24-Apr-08 19:49 
GeneralRe: Need solution for WSAEWOULDBLOCK Pin
Mark Salsbery25-Apr-08 6:14
Mark Salsbery25-Apr-08 6:14 
QuestionWhat is the significance of #pragma once ? Pin
SherTeks24-Apr-08 19:26
SherTeks24-Apr-08 19:26 
AnswerRe: What is the significance of #pragma once ? Pin
Mukesh Kumar24-Apr-08 19:46
Mukesh Kumar24-Apr-08 19:46 
AnswerRe: What is the significance of #pragma once ? Pin
ShilpiP24-Apr-08 20:11
ShilpiP24-Apr-08 20:11 
GeneralRe: What is the significance of #pragma once ? Pin
SherTeks24-Apr-08 20:56
SherTeks24-Apr-08 20:56 
GeneralRe: What is the significance of #pragma once ? Pin
Naveen24-Apr-08 21:14
Naveen24-Apr-08 21:14 
GeneralRe: What is the significance of #pragma once ? Pin
SherTeks24-Apr-08 21:30
SherTeks24-Apr-08 21:30 
GeneralRe: What is the significance of #pragma once ? Pin
ShilpiP24-Apr-08 21:54
ShilpiP24-Apr-08 21:54 
GeneralRe: What is the significance of #pragma once ? Pin
Rajkumar R24-Apr-08 21:27
Rajkumar R24-Apr-08 21:27 
AnswerRe: What is the significance of #pragma once ? Pin
peterchen24-Apr-08 21:54
peterchen24-Apr-08 21:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.