Link to home
Start Free TrialLog in
Avatar of adarsh_bhat
adarsh_bhat

asked on

Using shBrowseForFolder

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
Avatar of jhance
jhance

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.
or if you have got the latest sdk make sure your paths are in the right order - eg sdk paths first, msdev paths second
ShaunWilde,

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

been bitten too :)
Avatar of adarsh_bhat

ASKER

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  
ASKER CERTIFIED SOLUTION
Avatar of jhance
jhance

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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  
Sorry , I dont know how that comment got repeated

Thanks Jhance, I'll manage from here
Yes, you said that once already.  Please see my last comment....