Solved

how select folder in fileopen dlg box

Posted on 2002-03-08
11
286 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
Comment Utility
Hi!
Wouldn't it be easier to call SHBrowseForFolder?

Mukki
0
 

Expert Comment

by:sindbad
Comment Utility
0
 
LVL 8

Expert Comment

by:VinExpert
Comment Utility
0
 
LVL 3

Expert Comment

by:aphillips
Comment Utility
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
Comment Utility
Hi aphillips,

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

VinExpert
0
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 
LVL 3

Expert Comment

by:aphillips
Comment Utility
> 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
thanks to u and  vinexpert and aphillips.
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

771 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

10 Experts available now in Live!

Get 1:1 Help Now