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
Solved

Using shBrowseForFolder

Posted on 2001-07-14
9
412 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
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 
LVL 9

Expert Comment

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

been bitten too :)
0
 

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

856 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