Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

MFC DirDialog?

Posted on 1998-05-24
6
Medium Priority
?
542 Views
Last Modified: 2013-12-03
does any one know how to create a simple dialog like this:This pic can be found on http://www.cyberway.com.sg/~chinteng/dir.jpgIs there any MFC built-in class that I can make use of and could you please tell me the details on how to do it, perhaps the steps involved. Thanx alot :)
0
Comment
Question by:poisson68
[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
  • 2
  • 2
  • 2
6 Comments
 
LVL 8

Expert Comment

by:MikeP090797
ID: 1403627
If you reffering to a dialog that allows you to select a directory, like when you clikc the 'Browse' button in most application, you can use ShBrowseForFolder API
0
 

Author Comment

by:poisson68
ID: 1403628
Thanx for the pointer MikeP, do you know the NT version since ShBrowseForFolder only works for Win95. Is there other API that works with NT. Or if I try to map the directory structure with a CTreeCtrl, will it be cumbersome and involves lotsa steps...? Thanx :)
0
 
LVL 23

Expert Comment

by:chensu
ID: 1403629
You can find the source code to do so at http://www.codeguru.com/dialog/dir_dialog.shtml. Windows NT does support it.
0
Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

 

Author Comment

by:poisson68
ID: 1403630
Whenever the header file "shlobj.h" is used, my compilation alwiz got problem

G:\MSDEV\INCLUDE\shlobj.h(1079) : error C2501: 'NETRESOURCE' : missing decl-specifiers
G:\MSDEV\INCLUDE\shlobj.h(1079) : error C2146: syntax error : missing ';' before identifier 'nr'
G:\MSDEV\INCLUDE\shlobj.h(1079) : error C2501: 'nr' : missing decl-specifiers

Above are the three line that I get everytime I make a compilation. It's not part of my source, I supposed... BTW, I compile my program in NT Server
0
 
LVL 8

Expert Comment

by:MikeP090797
ID: 1403631
Actualy, I compiled inunder Win95 and got the same error. I just commected out that lines, and everything went fine
0
 
LVL 23

Accepted Solution

by:
chensu earned 200 total points
ID: 1403632
It seems that you are using Visual C++ 4.0. Edit your StdAfx.h and take out #define VC_EXTRALEAN.
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

This article shows how to make a Windows 7 gadget that accepts files dropped from the Windows Explorer.  It also illustrates how to give your gadget a non-rectangular shape and how to add some nifty visual effects to text displayed in a your gadget.…
zlib is a free compression library (a DLL) on which the popular gzip utility is built.  In this article, we'll see how to use the zlib functions to compress and decompress data in memory; that is, without needing to use a temporary file.  We'll be c…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…

704 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