🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #6805

SHBrowseForFolder help

#6805
From: Blake Young
Date: Mon, 11 Apr 2005 20:30
25 lines
2133 bytes
First of all, I know this has been done to death in the past, but I couldn't 
find any topics using search, so I figured I'd have to ask again.

As you might imagine, I'm trying to find a clean and professional looking 
way of allowing users to browse for folders.  I've tried the VCL 
SelectDirectory function, but unforunately I think it looks only about 2 
degrees removed from the hideous days of Windows 3.1.  I actually have a 
functional folder brower in my program, but it's using the DirectoryList 
component and it doesn't offer some features I'm looking for.  The main 
thing I need is the ability to create a new folder on-the-spot (i.e. while 
the user is browsing).  I believe that SHBrowseForFolder gives me this 
option, but unfortunately I cannot get it to compile.  I'm getting an error 
about BROWSEINFO not being indentified.  I've tried including windows.h but 
that doesn't help.  I've also tried including shlobj.h but then I get errors 
about multiple declarations.  So, I was just curious as to what exactly 
needed to be included (or linked, if necessary) to get SHBrowseForFolder to 
work.

To be honest, this is the ideal folder browser I'd like (from MS Visual 
Studio):
https://webspace.utexas.edu/youngba2/www/folder_browse.jpg


Thanks
Blake 
Technical Details
Message-ID: <425ade83$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,52d285e123d4a41a,start
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Blake Young" <blakeyoung@mail.utexas.edu>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: SHBrowseForFolder help
Date: Mon, 11 Apr 2005 15:30:51 -0500
Lines: 27
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
NNTP-Posting-Host: 68.91.216.237
Message-ID: <425ade83$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1113251459 68.91.216.237 (11 Apr 2005 13:30:59 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail