Converting ITEMIDLIST (PIDL) to String

This is a discussion on Converting ITEMIDLIST (PIDL) to String within the Windows Programming forums, part of the Platform Specific Boards category; I am using the "Browse For Folder" common dialog box and oddly enough, whereas the "Open/Save as" common dialog uses ...

  1. #1
    Registered Abuser
    Join Date
    Jun 2006
    Location
    Toronto
    Posts
    591

    Converting ITEMIDLIST (PIDL) to String

    I am using the "Browse For Folder" common dialog box and oddly enough, whereas the "Open/Save as" common dialog uses a string to represent the full path of the selected file, "Browse For Folder" instead uses a PIDL_ABSOLUTE. After investigating exactly what this structure is I know now how to use it; however I am still at a loss to find a way to convert a PIDL into to a regular string that represents the path.

    So far I have found ILCreateFromPath() which converts a string path into a PIDL, but what I need is something to do the exact opposite, a function that converts a PIDL into a string path. Any suggestions?
    (alternatively is there an even better way to implement a "Browse for folder" dialog without having to deal with PIDLs?)

    Thanks for any suggestions.

  2. #2
    Registered User
    Join Date
    Mar 2005
    Location
    Mountaintop, Pa
    Posts
    1,059
    Is SHGetPathFromIDList what you're looking for?

  3. #3
    Registered Abuser
    Join Date
    Jun 2006
    Location
    Toronto
    Posts
    591
    That's exactly it! Thanks!!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. OOP Question DB Access Wrapper Classes
    By digioz in forum C# Programming
    Replies: 2
    Last Post: 09-07-2008, 05:30 PM
  2. C++ ini file reader problems
    By guitarist809 in forum C++ Programming
    Replies: 7
    Last Post: 09-04-2008, 07:02 AM
  3. String issues
    By The_professor in forum C++ Programming
    Replies: 7
    Last Post: 06-12-2007, 10:11 AM
  4. Calculator + LinkedList
    By maro009 in forum C++ Programming
    Replies: 20
    Last Post: 05-17-2005, 01:56 PM
  5. Warnings, warnings, warnings?
    By spentdome in forum C Programming
    Replies: 25
    Last Post: 05-27-2002, 07:49 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21