directories folders and how to open them

Reply

Join Date: Nov 2007
Posts: 78
Reputation: tootypegs is an unknown quantity at this point 
Solved Threads: 0
tootypegs tootypegs is offline Offline
Junior Poster in Training

directories folders and how to open them

 
0
  #1
Jul 27th, 2008
Hi, I have a console application that works fine. The users puts in the path of a folder and my program looks at every file in that folder. This is exactly what I wanted only now I'm moving it over into a GUI. Im using borland c++ builder 6 and I am looking at their preset dialog functions. The one I'm looking at is the 'opendialog' which I thought would be perfect however it will only open up files, it wont simply let me browse to a folder and grab hold of that, it just opens up the folder. I hope ive explained myself well enough and I was hoping that any of you guys may know a way to solve my problem without making the user actually write the path of the folder into an input box on my GUI

thanks
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 16,605
Reputation: Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute 
Solved Threads: 1614
Team Colleague
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is offline Offline
Still Learning

Re: directories folders and how to open them

 
0
  #2
Jul 27th, 2008
You could write your own -- like this one
The most important thing in the Olympic Games is not to win but to take part, just as the most important thing in life is not the triumph but the struggle. The essential thing is not to have conquered but to have fought well.
-Pierre de Coubertin, The Olympic Creed Inspired by Bishop Ethelbert
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 78
Reputation: tootypegs is an unknown quantity at this point 
Solved Threads: 0
tootypegs tootypegs is offline Offline
Junior Poster in Training

Re: directories folders and how to open them

 
0
  #3
Jul 27th, 2008
That looks very useful but as far as writing my own I wouldn't know where to start unfortunately
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 16,605
Reputation: Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute 
Solved Threads: 1614
Team Colleague
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is offline Offline
Still Learning

Re: directories folders and how to open them

 
0
  #4
Jul 27th, 2008
start by looking at that link I posted -- they give you all the source code. You will probably have to strip out the MFC stuff and use whatever your compiler supplies. I'm certain it supports TreeView, which is a standard win32 api window type.

As fas as finding the folder names I suppose it uses FindFirstFile() and FindNextFile() to locate the folder names.
The most important thing in the Olympic Games is not to win but to take part, just as the most important thing in life is not the triumph but the struggle. The essential thing is not to have conquered but to have fought well.
-Pierre de Coubertin, The Olympic Creed Inspired by Bishop Ethelbert
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 78
Reputation: tootypegs is an unknown quantity at this point 
Solved Threads: 0
tootypegs tootypegs is offline Offline
Junior Poster in Training

Re: directories folders and how to open them

 
0
  #5
Jul 27th, 2008
I've been studying that website and I still cant find out whats going on. Im new to borland c++builder 6 and usually work in command line. It does have a tree view pane item that I can add onto my form but Im not sure how to work it at all. Do you know of any resources out there like guides or something I can can have a look at to see how it works a bit more because i have a feeling that this isnt going to be one of those things I can blag my way through

thanks
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 16,605
Reputation: Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute 
Solved Threads: 1614
Team Colleague
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is offline Offline
Still Learning

Re: directories folders and how to open them

 
0
  #6
Jul 27th, 2008
Isn't it named TTreeView or something like that? Then just google for it and you should find the information you need about how to use it.
The most important thing in the Olympic Games is not to win but to take part, just as the most important thing in life is not the triumph but the struggle. The essential thing is not to have conquered but to have fought well.
-Pierre de Coubertin, The Olympic Creed Inspired by Bishop Ethelbert
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C++ Forum


Views: 611 | Replies: 5
Thread Tools Search this Thread



Tag cloud for C++
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2010 DaniWeb® LLC