Solved

how select folder in fileopen dlg box

Posted on 2002-03-08
11
289 Views
Last Modified: 2013-11-20
I want to select dir (folder)from File Open dialog box,
same as select file. and after click on open, i want directory name in edit box.
0
Comment
Question by:rpatna
  • 3
  • 3
  • 2
  • +3
11 Comments
 
LVL 1

Expert Comment

by:Mukki
ID: 6850737
Hi!
Wouldn't it be easier to call SHBrowseForFolder?

Mukki
0
 

Expert Comment

by:sindbad
ID: 6851374
0
 
LVL 8

Expert Comment

by:VinExpert
ID: 6855859
0
 
LVL 3

Expert Comment

by:aphillips
ID: 6859188
Mukki wrote:
>Wouldn't it be easier to call SHBrowseForFolder?

The shortcomings of SHBrowseForFolder are many and well-known.  Please do not even contemplate it.

VinExpert wrote:
>http://www.codeguru.com/dialog/DirDialogPhillips.shtml

I recommend this one (as I wrote it :-)
0
 
LVL 8

Expert Comment

by:VinExpert
ID: 6859368
Hi aphillips,

That sample is a great job. I appreciate it. Keep up the good work.

VinExpert
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 3

Expert Comment

by:aphillips
ID: 6860033
> That sample is a great job. I appreciate it. Keep up the good work.

Actually, I made some fixes that I should post.  In particular, when the dialog window is resized the text box resizes too (even under Windows 95).
0
 

Author Comment

by:rpatna
ID: 6860328
http://www.codeguru.com/dialog/DirDialogPhillips.shtml

this code is ok but getting problem to implement in my applications. now i'm trying to implement. i think it will work.
0
 

Author Comment

by:rpatna
ID: 6860356
I got this error
Linking...
DirDialog.obj : error LNK2001: unresolved external symbol __imp__MakeSureDirectoryPathExists@4
Debug/MP3 Organizer.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
0
 
LVL 8

Expert Comment

by:VinExpert
ID: 6860406
Hi,

Go to Projects->Settings->Link tab and then specify "imagehlp.lib" in the "object/Library Modules" section. Now compile it. It will work.

VinExpert
0
 

Accepted Solution

by:
ravinesh earned 50 total points
ID: 6870780
hi rpatna,
                            http://www.codeguru.com/dialog/DirDialogPhillips.shtml
the above link is good answer
but this will give u following error
Linking...
DirDialog.obj : error LNK2001: unresolved external symbol __imp__MakeSureDirectoryPathExists@4
Debug/MP3 Organizer.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
to remove this error
Go to Projects->Settings->Link tab and then specify "imagehlp.lib" in the "object/Library Modules" section.
   then build it and run , it will work
0
 

Author Comment

by:rpatna
ID: 6870785
thanks to u and  vinexpert and aphillips.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Need a Shell script to start a service checking the port 6 48
mixString challenge 36 111
conditional code and condition difference 9 77
mapAB Challlenge 35 124
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now