Click here to Skip to main content
15,890,557 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralIE Form Filler Pin
Krazyman26-Apr-05 11:59
Krazyman26-Apr-05 11:59 
GeneralRe: IE Form Filler Pin
Michael Dunn26-Apr-05 12:16
sitebuilderMichael Dunn26-Apr-05 12:16 
GeneralImage Printing Pin
Member 94915926-Apr-05 11:54
Member 94915926-Apr-05 11:54 
GeneralRe: Image Printing Pin
Peter Ritchie26-Apr-05 17:48
Peter Ritchie26-Apr-05 17:48 
Generalsystem files Pin
trupgmtuf26-Apr-05 11:46
susstrupgmtuf26-Apr-05 11:46 
GeneralRe: system files Pin
Peter Ritchie26-Apr-05 17:51
Peter Ritchie26-Apr-05 17:51 
QuestionBrowseFolders Dialog on Win2k/IE5? Pin
Ingmar326-Apr-05 11:07
Ingmar326-Apr-05 11:07 
AnswerRe: BrowseFolders Dialog on Win2k/IE5? Pin
Peter Ritchie26-Apr-05 17:20
Peter Ritchie26-Apr-05 17:20 
You can convert the file object's display name into a path with the following:
<FONT COLOR=GREEN>/// <summary>
/// Sample that converts a textual file/folder object display name
/// (::{GUID} format) to a physical path (if possible)
/// </summary>
/// <author> Peter A. Ritchie</author>
/// <date type="creation">26-Apr-2005</date>
</FONT>CComPtr<FONT COLOR=BLUE><</FONT>IShellFolder<FONT COLOR=BLUE>></FONT> pshf <FONT COLOR=BLUE>=</FONT> NULL<FONT COLOR=BLUE>;</FONT>

<FONT COLOR=BLUE>:</FONT><FONT COLOR=BLUE>:</FONT>SHGetDesktopFolder<FONT COLOR=BLUE>(</FONT><FONT COLOR=BLUE>&</FONT>pshf<FONT COLOR=BLUE>)</FONT><FONT COLOR=BLUE>;</FONT>
LPITEMIDLIST pidlDocFiles<FONT COLOR=BLUE>;</FONT>
ULONG cbEaten<FONT COLOR=BLUE>;</FONT>
pshf<FONT COLOR=BLUE>-</FONT><FONT COLOR=BLUE>></FONT>ParseDisplayName<FONT COLOR=BLUE>(</FONT>NULL<FONT COLOR=BLUE>,</FONT> <ul>	NULL<FONT COLOR=BLUE>,</FONT> 
	L<FONT COLOR=PURPLE>"::{450d8fba-ad25-11d0-98a8-0800361b1103}"</FONT><FONT COLOR=BLUE>,</FONT> 
	<FONT COLOR=BLUE>&</FONT>cbEaten<FONT COLOR=BLUE>,</FONT> 
	<FONT COLOR=BLUE>&</FONT>pidlDocFiles<FONT COLOR=BLUE>,</FONT> 
	NULL<FONT COLOR=BLUE>)</FONT><FONT COLOR=BLUE>;</FONT>
</ul>
TCHAR szPath<FONT COLOR=BLUE>[</FONT>MAX_PATH<FONT COLOR=BLUE>]</FONT> <FONT COLOR=BLUE>=</FONT> _T<FONT COLOR=BLUE>(</FONT><FONT COLOR=PURPLE>""</FONT><FONT COLOR=BLUE>)</FONT><FONT COLOR=BLUE>;</FONT>

<FONT COLOR=BLUE>:</FONT><FONT COLOR=BLUE>:</FONT>SHGetPathFromIDList<FONT COLOR=BLUE>(</FONT>pidlDocFiles<FONT COLOR=BLUE>,</FONT> szPath<FONT COLOR=BLUE>)</FONT><FONT COLOR=BLUE>;</FONT>
But, I'm curious, how are you getting the display name "::{GUID}"? Are you using SHBrowseForFolder? If so, what are you doing with the PIDL?

PeterRitchie.com
GeneralRe: BrowseFolders Dialog on Win2k/IE5? Pin
Ingmar326-Apr-05 21:18
Ingmar326-Apr-05 21:18 
GeneralRe: BrowseFolders Dialog on Win2k/IE5? Pin
Peter Ritchie29-Apr-05 5:26
Peter Ritchie29-Apr-05 5:26 
GeneralRe: BrowseFolders Dialog on Win2k/IE5? Pin
Ingmar313-May-05 1:40
Ingmar313-May-05 1:40 
Generaldelete this questions Pin
Steve Messer26-Apr-05 10:42
Steve Messer26-Apr-05 10:42 
GeneralRe: delete this questions Pin
PJ Arends26-Apr-05 11:17
professionalPJ Arends26-Apr-05 11:17 
GeneralRe: delete this questions Pin
Anonymous26-Apr-05 11:27
Anonymous26-Apr-05 11:27 
GeneralRe: delete this questions Pin
Steve Messer26-Apr-05 12:02
Steve Messer26-Apr-05 12:02 
GeneralRe: delete this questions Pin
PJ Arends26-Apr-05 12:16
professionalPJ Arends26-Apr-05 12:16 
GeneralRe: delete this questions Pin
Steve Messer26-Apr-05 12:28
Steve Messer26-Apr-05 12:28 
GeneralRe: delete this questions Pin
PJ Arends26-Apr-05 12:54
professionalPJ Arends26-Apr-05 12:54 
GeneralRe: delete this questions Pin
Maximilien26-Apr-05 12:10
Maximilien26-Apr-05 12:10 
GeneralRe: delete this questions Pin
Brian R26-Apr-05 12:45
Brian R26-Apr-05 12:45 
GeneralRe: delete this questions Pin
PJ Arends26-Apr-05 13:21
professionalPJ Arends26-Apr-05 13:21 
GeneralRe: delete this questions Pin
Mayur Mahajan26-Apr-05 17:57
Mayur Mahajan26-Apr-05 17:57 
GeneralRe: delete this questions Pin
David Crow27-Apr-05 2:54
David Crow27-Apr-05 2:54 
GeneralRe: delete this questions Pin
Mayur Mahajan27-Apr-05 7:28
Mayur Mahajan27-Apr-05 7:28 
GeneralRe: delete this questions Pin
Steve Messer26-Apr-05 16:44
Steve Messer26-Apr-05 16:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.