Article View: borland.public.cppbuilder.nativeapi
Article #6806Re: SHBrowseForFolder help
From: Remy Lebeau (TeamB)
Date: Mon, 11 Apr 2005 21:00
Date: Mon, 11 Apr 2005 21:00
46 lines
2467 bytes
2467 bytes
"Blake Young" <blakeyoung@mail.utexas.edu> wrote in message
news:425ade83$1@newsgroups.borland.com...
> 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.
Sounds like you are still using the old version of SelectDirectory() that
created its own VCL form and did use the Win3.1 components. The newer
version now internally calls SHBrowseForFolder() instead. The new version
of SelectDirectory() was introduced in BCB5. Which version of BCB are you
using?
> 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
Only on systems with IE5+ installed, and even then that particular feature
cannot be enabled by itself. You have to enable a whole different dialog
style, which then enables additional features as well that you may or may
not want.
> but unfortunately I cannot get it to compile.
You need to be more specific. What is the actual error?
> I'm getting an error about BROWSEINFO not being indentified.
Did you include its header file?
#include <shlobj.h>
> I've tried including windows.h but that doesn't help.
The VCL already includes windows.h, but BROWSEINFO is not declared in
windows.h to begin with.
> I've also tried including shlobj.h but then I get errors about
> multiple declarations.
You need to add NO_WIN32_LEAN_AND_MEAN to the Conditionals list inside your
Project Objects.
Gambit
Technical Details
Message-ID:
<425ae4e0@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<425ade83$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,52d285e123d4a41a X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <425ade83$1@newsgroups.borland.com> Subject: Re: SHBrowseForFolder help Date: Mon, 11 Apr 2005 14:00:06 -0700 Lines: 48 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 68.69.17.41 Message-ID: <425ae4e0@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1113253088 68.69.17.41 (11 Apr 2005 13:58:08 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail