Click here to Skip to main content
15,900,405 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionhow to send Sound buffer (of DirectX Sound) Via Socket .. to my own Server Pin
Anonymous29-Jan-04 1:17
Anonymous29-Jan-04 1:17 
GeneralTerminate another apllication Pin
Cedric Moonen29-Jan-04 1:15
Cedric Moonen29-Jan-04 1:15 
GeneralRe: Terminate another apllication Pin
J. Eric Vaughan29-Jan-04 5:00
J. Eric Vaughan29-Jan-04 5:00 
GeneralRe: Terminate another apllication Pin
Cedric Moonen29-Jan-04 5:07
Cedric Moonen29-Jan-04 5:07 
GeneralMultiple selection in CFileDialog and CListBox Pin
julych29-Jan-04 0:52
julych29-Jan-04 0:52 
GeneralRe: Multiple selection in CFileDialog and CListBox Pin
Diddy29-Jan-04 3:54
Diddy29-Jan-04 3:54 
GeneralRe: Multiple selection in CFileDialog and CListBox Pin
julych29-Jan-04 11:34
julych29-Jan-04 11:34 
GeneralRe: Multiple selection in CFileDialog and CListBox Pin
Diddy30-Jan-04 7:43
Diddy30-Jan-04 7:43 
No problem Smile | :)

I'm not really sure what you are asking with the second part, so I'll try to answer three things you could mean Smile | :)

1. You get a problem when you have too many files seleced in the file dialog
2. You get a problem when the file name for one of them files selected is long
3. You get a problem when adding a large number of files, or a file with a long name, to the list box.

1.

As for as I know there is no limited on the number of files you can select, I've never seen it anyway. The only problem you might get is because windows adds each file you select to the edit control, so if you select a lot you may overrun the edit control - is that what you mean? If so, see 2.

2.

Hmmm... Well, the max length of a file name is MAX_PATH (255 chars) in Windows anyway, the edit control that accepts the file list should be able to take that easily, but with a lot of files it concevable you will overrun it.

The only thing I can suggest is to use the "explorer style" file dialog (the one with the places bar down the side) this may be able to handle a large list of files better. Though you are now faced with another problem. Using the explorer dialog via MFC is tricky. You have to set define _WIN32_WINNT >= 0x0500 (which also means this will only work on 2k+) but thats not all there is to it because the setting this define adds some extra members to the OPENFILENAME struct which cause windows to display the explore style dialog rather than the new one. Unfotunatly, the size of OPENFILENAME is set with in MFC and short of recompiling MFC dlls, you are stuck with it. There are ways round it, search for OPENFILENAME on MSDN and look for 2000 Peridocal (called C++ Q AND A) buy Paul DiLascia. It's called "Windows 2000 File Dialog Revisited; Autocompletion and the ACTest Demo App" and it will show you how to use the new open dialog which might fix your problem. Of course if it doesn't, then.. err.. Smile | :)

The other thing it might be is this:

FIX: Common File Dialog Multiple Selection File Limit : Q179372

But this has aparently been fixed in a service pack. WHat version you running?

3.

If this is your problem you are hitting a limit with the number of entrys a list box can handle, use a CListCtrl instead.
GeneralProblem with VK_NUMLCOCK and VK_INSERT Pin
svincent29-Jan-04 0:39
svincent29-Jan-04 0:39 
GeneralRe: Problem with VK_NUMLCOCK and VK_INSERT Pin
ohadp29-Jan-04 6:27
ohadp29-Jan-04 6:27 
GeneralStopping MFC MDI Apps from creating a default view Pin
RichardS29-Jan-04 0:36
RichardS29-Jan-04 0:36 
GeneralRe: Stopping MFC MDI Apps from creating a default view Pin
Iain Clarke, Warrior Programmer29-Jan-04 6:22
Iain Clarke, Warrior Programmer29-Jan-04 6:22 
GeneralOddity Copying Global Memory Pin
Steve Thresher29-Jan-04 0:30
Steve Thresher29-Jan-04 0:30 
GeneralRe: Oddity Copying Global Memory Pin
Mukkie29-Jan-04 11:22
Mukkie29-Jan-04 11:22 
Questionstatus bar in mIRC.. how you do this ? Pin
ELY M.29-Jan-04 0:13
ELY M.29-Jan-04 0:13 
AnswerRe: status bar in mIRC.. how you do this ? Pin
toxcct29-Jan-04 5:40
toxcct29-Jan-04 5:40 
GeneralRe: status bar in mIRC.. how you do this ? Pin
ELY M.29-Jan-04 6:38
ELY M.29-Jan-04 6:38 
GeneralRe: status bar in mIRC.. how you do this ? Pin
toxcct29-Jan-04 7:58
toxcct29-Jan-04 7:58 
GeneralRe: status bar in mIRC.. how you do this ? Pin
Robert A. T. Káldy29-Jan-04 10:22
Robert A. T. Káldy29-Jan-04 10:22 
GeneralRe: status bar in mIRC.. how you do this ? Pin
ELY M.29-Jan-04 10:36
ELY M.29-Jan-04 10:36 
GeneralRe: status bar in mIRC.. how you do this ? Pin
toxcct29-Jan-04 20:07
toxcct29-Jan-04 20:07 
GeneralRe: status bar in mIRC.. how you do this ? Pin
ELY M.29-Jan-04 10:22
ELY M.29-Jan-04 10:22 
QuestionHow to set CDialog size in pixels ? Pin
vgrigor28-Jan-04 23:50
vgrigor28-Jan-04 23:50 
AnswerRe: How to set CDialog size in pixels ? Pin
Iain Clarke, Warrior Programmer29-Jan-04 6:11
Iain Clarke, Warrior Programmer29-Jan-04 6:11 
Generalto retrieve the address line from explorer Pin
sinuommen28-Jan-04 23:47
sinuommen28-Jan-04 23:47 

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.