Results 1 to 5 of 5

Thread: VB6 - Enumerated SpecialFolders - for Intellisense

  1. #1

    Thread Starter
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961

    VB6 - Enumerated SpecialFolders - for Intellisense

    Not sure if this has been done already...

    A .BAS module to help ease the use of the SpecialFolders API. Hand-typed, please check for any errors or typos. If incomplete, please post additions.

    Dave
    Attached Images Attached Images  
    Attached Files Attached Files
    Last edited by Dave Sell; Jan 8th, 2007 at 05:45 PM.
    Nobody knows what software they want until after you've delivered what they originally asked for.

    Don't solve problems which don't exist.

    "If I had eight hours to cut down a tree, I'd spend six hours sharpening my axe." --- Abraham Lincoln (1809-1865)

    2 idiots don't make a genius.

  2. #2

    Thread Starter
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961

    Re: VB6 - Enumerated SpecialFolders - for Intellisense

    It appears to have a problem if your "MyDocuments" Folder is moved... Seems other have had similar problems with the API.
    Nobody knows what software they want until after you've delivered what they originally asked for.

    Don't solve problems which don't exist.

    "If I had eight hours to cut down a tree, I'd spend six hours sharpening my axe." --- Abraham Lincoln (1809-1865)

    2 idiots don't make a genius.

  3. #3
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: VB6 - Enumerated SpecialFolders - for Intellisense

    Why do both:

    vb Code:
    1. Private Sub Form_Load()
    2. Debug.Print (GetSpecialfolder(SpecialFolders.appdata))
    3. Debug.Print (GetSpecialfolder(SpecialFolders.Local_AppData))
    4. End Sub

    print the "Roaming" folder when I need the "Local" folder location?
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  4. #4
    PowerPoster
    Join Date
    Aug 2010
    Location
    Canada
    Posts
    2,229

    Re: VB6 - Enumerated SpecialFolders - for Intellisense

    Because there's a mistake in the SpecialFolders Enum:

    Local_AppData = CSIDL_APPDATA


    Should be:

    Local_AppData = CSIDL_LOCAL_APPDATA

  5. #5
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: VB6 - Enumerated SpecialFolders - for Intellisense

    Quote Originally Posted by jpbro View Post
    Because there's a mistake in the SpecialFolders Enum:

    Local_AppData = CSIDL_APPDATA


    Should be:

    Local_AppData = CSIDL_LOCAL_APPDATA
    Ah ok thanks! + REP.
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

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