Wierd CommonDialog MultiSelect problem.

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • ManaUser

    Wierd CommonDialog MultiSelect problem.

    It works normally with one or a small number of files selected, but if I
    try to select a lot (have't nailed down the exact number yet) I get
    something like this:
    C:\Program Files\Dink Smallwood\Junk\ STORY\À”ü¿4Ž
    That is, the correct path, but instead of the files names, just a small
    blob of garbage.

    Any ideas? (fixes, workarounds, or guesses on why it's doing this.)

    --
    As you become a more powerful and subtle programmer,
    your errors, too, will become more powerful and subtle.
    -- Mitchell Waite & Stephen Prata, New C Primer Plus.
  • Raoul Watson

    #2
    Re: Wierd CommonDialog MultiSelect problem.


    "ManaUser" <manauserREMOVE @earthlink.net> wrote in message
    news:3F544570.1 C6089EC@earthli nk.net...[color=blue]
    > It works normally with one or a small number of files selected, but if I
    > try to select a lot (have't nailed down the exact number yet) I get
    > something like this:
    > C:\Program Files\Dink Smallwood\Junk\ STORY\À"ü¿4Z
    > That is, the correct path, but instead of the files names, just a small
    > blob of garbage.
    >
    > Any ideas? (fixes, workarounds, or guesses on why it's doing this.)
    >[/color]

    Make sure you DIM the string to hold the file name and not restrict it to a
    certain size only.


    Comment

    • ManaUser

      #3
      Re: Wierd CommonDialog MultiSelect problem.

      Raoul Watson wrote:[color=blue]
      >
      > "ManaUser" <manauserREMOVE @earthlink.net> wrote in message
      > news:3F544570.1 C6089EC@earthli nk.net...[color=green]
      > > It works normally with one or a small number of files selected, but if I
      > > try to select a lot (have't nailed down the exact number yet) I get
      > > something like this:
      > > C:\Program Files\Dink Smallwood\Junk\ STORY\À"ü¿4Z
      > > That is, the correct path, but instead of the files names, just a small
      > > blob of garbage.
      > >
      > > Any ideas? (fixes, workarounds, or guesses on why it's doing this.)
      > >[/color]
      >
      > Make sure you DIM the string to hold the file name and not restrict it to a
      > certain size only.[/color]

      Thanks for the suggestion, but I even get that result directly off the
      cdl control's filename property, so I wouldn't think my varable matters.

      --
      As you become a more powerful and subtle programmer,
      your errors, too, will become more powerful and subtle.
      -- Mitchell Waite & Stephen Prata, New C Primer Plus.

      Comment

      • Jeff North

        #4
        Re: Wierd CommonDialog MultiSelect problem.

        On Wed, 03 Sep 2003 03:58:45 GMT, in comp.lang.visua l.basic ManaUser
        <manauserREMOVE @earthlink.net> wrote:
        [color=blue]
        >| Raoul Watson wrote:
        >| >
        >| > "ManaUser" <manauserREMOVE @earthlink.net> wrote in message
        >| > news:3F544570.1 C6089EC@earthli nk.net...
        >| > > It works normally with one or a small number of files selected, but if I
        >| > > try to select a lot (have't nailed down the exact number yet) I get
        >| > > something like this:
        >| > > C:\Program Files\Dink Smallwood\Junk\ STORY\À"ü¿4Z
        >| > > That is, the correct path, but instead of the files names, just a small
        >| > > blob of garbage.
        >| > >
        >| > > Any ideas? (fixes, workarounds, or guesses on why it's doing this.)
        >| > >
        >| >
        >| > Make sure you DIM the string to hold the file name and not restrict it to a
        >| > certain size only.
        >|
        >| Thanks for the suggestion, but I even get that result directly off the
        >| cdl control's filename property, so I wouldn't think my varable matters.[/color]

        You might want to right mouse click on the commonddialog control and
        set the maxFileSize property to a large number. The default is 260
        characters. I usually set this to 1024 or 2048.
        ---------------------------------------------------------------
        jnorth@yourpant sbigpond.net.au : Remove your pants to reply
        ---------------------------------------------------------------

        Comment

        • ManaUser

          #5
          Re: Wierd CommonDialog MultiSelect problem.

          Jeff North wrote:[color=blue]
          >
          > You might want to right mouse click on the commonddialog control and
          > set the maxFileSize property to a large number. The default is 260
          > characters. I usually set this to 1024 or 2048.[/color]

          That sounds like a good place to start. Thanks.

          --
          As you become a more powerful and subtle programmer,
          your errors, too, will become more powerful and subtle.
          -- Mitchell Waite & Stephen Prata, New C Primer Plus.

          Comment

          Working...