Solved

Using shBrowseForFolder

Posted on 2001-07-14
9
383 Views
Last Modified: 2013-11-20
Hi friends
I am using the shBrowseForFolder function in my MFC app to allow the user browse and select a folder. I want to use the BIF_NEWDIALOGSTYLE flag for my browser but when I compile my program it says that BIF_NEWDIALOGSTYLE is undeclared. The documentation says that BIF_NEWDIALOGSTYLE  requires shell32.dll v 5.0 or later. I have win 2000 professional (with IE 5.0) installed on my PC and hence my shell32.dll should meet this requirement.
What else could be the problem ?

Adarsh
0
Comment
Question by:adarsh_bhat
  • 4
  • 3
  • 2
9 Comments
 
LVL 32

Expert Comment

by:jhance
ID: 6281952
What version of the SDK do you have?  You are having a COMPILE ERROR and not a runtime error.  My guess is that you are using the old SDK and therefore .h files that came with your copy of VC++.  This is almost certainly out of date and lacks the declaration of this flag.

Go to the MSDN web site and download the current SDK:

http://www.microsoft.com/msdownload/platformsdk/sdkupdate/

It's really huge so if you have an MSDN subscription, getting it off of CD would be quicker.
0
 
LVL 9

Expert Comment

by:ShaunWilde
ID: 6282082
or if you have got the latest sdk make sure your paths are in the right order - eg sdk paths first, msdev paths second
0
 
LVL 32

Expert Comment

by:jhance
ID: 6282237
ShaunWilde,

Good point.  I'd hate to admit how many times that's bitten me....
0
 
LVL 9

Expert Comment

by:ShaunWilde
ID: 6282558
> I'd hate to admit how many times that's bitten me

been bitten too :)
0
How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

 

Author Comment

by:adarsh_bhat
ID: 6299266
I do have the MSDN subscription with me but I am unable to find out which CD is the latest SDK (there are about 350 CDs) There are a few CDs titled 'Platform SDK'. Is this the same thing ? Is this SDK installed as a separate application or does it just update my existing visual studio installation ? Please help

Adarsh  
0
 
LVL 32

Accepted Solution

by:
jhance earned 50 total points
ID: 6299278
SDK is installed as a separate application and it WILL NOT replace your Visual Studio header file.  That's why this is an issue!

If you don't know which of your CDs have the latest SDK, go to the MSDN web site and check the index and/or download the SDK from there.  You don't even have to be a subscriber to download the SDK, it's free for the taking...
0
 

Author Comment

by:adarsh_bhat
ID: 6299371
I do have the MSDN subscription with me but I am unable to find out which CD is the latest SDK (there are about 350 CDs) There are a few CDs titled 'Platform SDK'. Is this the same thing ? Is this SDK installed as a separate application or does it just update my existing visual studio installation ? Please help

Adarsh  
0
 

Author Comment

by:adarsh_bhat
ID: 6299375
Sorry , I dont know how that comment got repeated

Thanks Jhance, I'll manage from here
0
 
LVL 32

Expert Comment

by:jhance
ID: 6299378
Yes, you said that once already.  Please see my last comment....
0

Featured Post

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.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
paragon account problem 9 96
Prevent this page from creating additional dialogs. 3 260
either24  challenge 19 84
FizzBuzz challenge 9 73
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
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.

758 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

17 Experts available now in Live!

Get 1:1 Help Now