BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Using VCL components to select a folder on disk

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage)
View previous topic :: View next topic  
Author Message
Dave Potz
Guest





PostPosted: Sat Jan 24, 2004 1:29 pm    Post subject: Using VCL components to select a folder on disk Reply with quote



Hi & Thanks

I need to simply select a folder from inside a
VCL application under BCB6 ENT.
If I had to select a single file I should use
TOpenFile component, but, in case of a folder,
is there any similar direct way ?

Dave Potz


Back to top
Vladimir Stefanovic
Guest





PostPosted: Sat Jan 24, 2004 1:53 pm    Post subject: Re: Using VCL components to select a folder on disk Reply with quote



Dave Potz wrote in message

Quote:
I need to simply select a folder [...]

Look at VCL Help for function: SelectDirectory(). Depending on parametes,
it can look like classic Windows "Browse for folder" or a special VCL style
directory selector...

I'm not sure but I think that if you use classic Windows style "Browse for
Folder" you cannot select network folders. Be reserved for this information
cos I cannot remember...

If you prefer to use API function to browse for folder 'SHBrowseForFolder()'
because of selection of network folders you'll need to add a special string
NO_WIN32_LEAN_AND_MEAN
in Project/Options/Directories-Conditionals/Conditional Defines to avoid
some errors that will be produced by a compiler.

Vladimir.







Back to top
Dave Potz
Guest





PostPosted: Sat Jan 24, 2004 7:35 pm    Post subject: Re: Using VCL components to select a folder on disk Reply with quote




"Vladimir Stefanovic" <spam (AT) not (DOT) needed> wrote:
Quote:


Look at VCL Help for function: SelectDirectory().

Thanks very much Vladimir, I'll try

Dave Potz



Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Sat Jan 24, 2004 10:57 pm    Post subject: Re: Using VCL components to select a folder on disk Reply with quote


"Vladimir Stefanovic" <spam (AT) not (DOT) needed> wrote


Quote:
you'll need to add a special string NO_WIN32_LEAN_AND_MEAN
in Project/Options/Directories-Conditionals/Conditional Defines to avoid
some errors that will be produced by a compiler.

Only if you are using BCB 5 or 6. The errors do not occur under BCB 3 or 4.


Gambit



Back to top
Dave Potz
Guest





PostPosted: Sat Jan 24, 2004 11:47 pm    Post subject: Re: Using VCL components to select a folder on disk Reply with quote


"Remy Lebeau (TeamB)" wrote :

Quote:
Only if you are using BCB 5 or 6. The errors do not >occur under BCB 3 or
4.


OK, I'm using BCB6,

Thanks Gambit

Dave



Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.