Solved

Using shBrowseForFolder

Posted on 2001-07-14
9
394 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
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.

864 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

24 Experts available now in Live!

Get 1:1 Help Now