Results 1 to 7 of 7

Thread: GetFolder

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2010
    Posts
    1,491

    GetFolder

    https://www.vbforums.com/showthread....acement-dialog

    The code in Msg2 needs a reference added. Anyone know what it is?
    With it will the code there return a folder ?
    The link in msg 1 has expired but an XP get folder routine is what I'm looking for.
    Thanks.

  2. #2
    PowerPoster
    Join Date
    Jul 2010
    Location
    NYC
    Posts
    6,263

    Re: GetFolder

    the ref is my oleexp.tlb.

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2010
    Posts
    1,491

    Re: GetFolder

    Many thanks, I've added the ref but now run into error 429 ActiveX component can't create object
    This is on Line With pChooseDir
    Once I can run it it may become obvious, but I can't see where the folder name is assigned or the Function returns it.

  4. #4
    PowerPoster Zvoni's Avatar
    Join Date
    Sep 2012
    Location
    To the moon and then left
    Posts
    4,738

    Re: GetFolder

    Quote Originally Posted by AlexanderBB View Post
    https://www.vbforums.com/showthread....acement-dialog

    The code in Msg2 needs a reference added. Anyone know what it is?
    With it will the code there return a folder ?
    The link in msg 1 has expired but an XP get folder routine is what I'm looking for.
    Thanks.
    From msg2
    If you're interested in using the standard open file dialog format to pick folders, you might be interested in know that the IFileDialog shell interface introduced in Vista does it the exact same way with the FOS_PICKFOLDERS option:
    Last edited by Zvoni; Tomorrow at 31:69 PM.
    ----------------------------------------------------------------------------------------

    One System to rule them all, One Code to find them,
    One IDE to bring them all, and to the Framework bind them,
    in the Land of Redmond, where the Windows lie
    ---------------------------------------------------------------------------------
    People call me crazy because i'm jumping out of perfectly fine airplanes.
    ---------------------------------------------------------------------------------
    Code is like a joke: If you have to explain it, it's bad

  5. #5

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2010
    Posts
    1,491

    Re: GetFolder

    Huh, was that a reply Zvoni?
    Is fafalone around ? He will know.

  6. #6
    PowerPoster Zvoni's Avatar
    Join Date
    Sep 2012
    Location
    To the moon and then left
    Posts
    4,738

    Re: GetFolder

    Quote Originally Posted by AlexanderBB View Post
    Huh, was that a reply Zvoni?
    Is fafalone around ? He will know.
    You wrote that you need that routine to work on XP,
    Fafalone's approach needs Vista or later

    No surprise faf's approach doesn't work for you
    *shrug*
    Last edited by Zvoni; Tomorrow at 31:69 PM.
    ----------------------------------------------------------------------------------------

    One System to rule them all, One Code to find them,
    One IDE to bring them all, and to the Framework bind them,
    in the Land of Redmond, where the Windows lie
    ---------------------------------------------------------------------------------
    People call me crazy because i'm jumping out of perfectly fine airplanes.
    ---------------------------------------------------------------------------------
    Code is like a joke: If you have to explain it, it's bad

  7. #7

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2010
    Posts
    1,491

    Re: GetFolder

    Thanks for letting me know - that wasn't obvious.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width