Solved

how select folder in fileopen dlg box

Posted on 2002-03-08
11
312 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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
 
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
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.
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…

728 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