Solved

MFC DirDialog?

Posted on 1998-05-24
6
510 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
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

After several hours of googling I could not gather any information on this topic. There are several ways of controlling the USB port connected to any storage device. The best example of that is by changing the registry value of "HKEY_LOCAL_MACHINE\S…
For a while now I'v been searching for a circular progress control, much like the one you get when first starting your Silverlight application. I found a couple that were written in WPF and there were a few written in Silverlight, but all appeared o…
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…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

705 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

20 Experts available now in Live!

Get 1:1 Help Now