Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

MFC DirDialog?

Posted on 1998-05-24
6
Medium Priority
?
553 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
  • 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
Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

 

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

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

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

This article describes how to add a user-defined command button to the Windows 7 Explorer toolbar.  In the previous article (http://www.experts-exchange.com/A_2172.html), we saw how to put the Delete button back there where it belongs.  "Delete" is …
With most software applications trying to cater to multiple user needs nowadays, the focus is to make them as configurable as possible. For e.g., when creating Silverlight applications which will connect to WCF services, the service end point usuall…
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…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

783 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