Solved

how select folder in fileopen dlg box

Posted on 2002-03-08
11
292 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
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 
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

ScreenConnect 6.0 Free Trial

At ScreenConnect, partner feedback doesn't fall on deaf ears. We collected partner suggestions off of their virtual wish list and transformed them into one game-changing release: ScreenConnect 6.0. Explore all of the extras and enhancements for yourself!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to create frequencies of a variable from SAS dataset? 10 125
repeateFront java challenge 31 93
ODBC Connection Logging, ADO.NET 6 64
Detect CR LF to each line 12 161
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
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 shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

777 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