home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / os / mswindo / programm / misc / 3380 < prev    next >
Encoding:
Text File  |  1992-11-11  |  1.6 KB  |  34 lines

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. Path: sparky!uunet!charon.amdahl.com!pacbell.com!ames!haven.umd.edu!decuac!pa.dec.com!decwrl!ditka!starnet!mzellers
  3. From: mzellers@StarConn.com (Mark Zellers)
  4. Subject: Size limitations on Open Common Dialog combo boxes?
  5. Message-ID: <1992Nov11.225904.6601@StarConn.com>
  6. Reply-To: jpat@fusion.com
  7. Organization: Starnet-Public Access UNIX--Los Altos, CA  415-949-3133
  8. Date: Wed, 11 Nov 1992 22:59:04 GMT
  9. Lines: 23
  10.  
  11. There is apparently a 2048 character limit on the string returned from
  12. the Open common dialog when allowing for multiple selections.
  13.  
  14. If I have a directory with several hundred files and I use the Open dialog
  15. to select all of them, the dialog is supposed to concatenate each file name
  16. selected into a single long string of space-delimited names.  That string,
  17. however, is apparently limited to 2048 characters, or roughly 157 full length
  18. file names.
  19.  
  20. The test program I wrote dynamically allocates the return buffer used by
  21. GetOpenFileName when the user presses OK.  But by the time the message handler
  22. sees the FILEOKSTRING message, the string has already been truncated.
  23.  
  24. The problem, I believe, is in the implementation of the combo-box which 
  25. handles the selection and display of the file names.
  26.  
  27. My question is:  Is this a real limitation or is there some parameter I can
  28. change to allow bigger strings?
  29. -- 
  30.  
  31. +-----------------------------------------------------------------------------+
  32. | Mark H. Zellers                                          Mark@fsi.Fusion.COM|
  33. | Fusion Software, Inc                    455 Sherman Ave, Palo Alto, CA 94306|
  34.