Hi I need to get the path of a folder for a program I am writing, I have to be honest I am winging it a bit sort of understood the SHBrowseForFolder class so far, and managed to get one open and get the return value, now I just need to know how to handle the return value, the item id string it returns means nothing to me any help would be greatly appreciated, thanks, here is my code.
Just to clarify I understand what it returns but the abID member item id list is what I need to handle and I don't understand how it translates to a folder path.
int i = 0;
memset(temp, '\0', sizeof(temp));
dlgbox.hwndOwner = NULL;
dlgbox.pidlRoot = NULL;
dlgbox.pszDisplayName = temp;
dlgbox.lpszTitle = "Select Report Dir";
dlgbox.ulFlags = BIF_EDITBOX;
dlgbox.lpfn = NULL;
retdir = SHBrowseForFolder(&dlgbox);
Sorry people I had been browsing my MSDN disc for ages and not found the answer, I browsed MSDN on the internet and found it almost instantly.
basically the answer for me is use a function called
SHGetPathFromIDList(ITEMIDLIST, char (must be MAX_PATH in size))
Pass it your item id list and a character array and it translates the jibberish to a path.