_ SHBrowseForFolder Shell API call.

Hi I am using C++Builder 5.

And I would like to call up the dialog that retrieves the folder path.

So I tried SHBrowseForFolder.

However, during compilation, the IDE gives me an error that many things in the shlobj.h are redifined...

(ex : FVSHOWINFO)

Maybe it's because I have to put something in my program to define API.. or WIN32... or...

But I don't know too much about making a shell call.

Can anyone teach me how to call SHBrowseForFolder successfully ?.
WeinAsked:
Who is Participating?
 
AlexVirochovskyConnect With a Mentor Commented:
Select Projects | Options.
Click the "Directories/Conditionals" tab on the dialog box.
Add NO_WIN32_LEAN_AND_MEAN to the list of conditionals.
Rebuild the entire project.

Alex
0
 
johnedwards2Commented:
Could you print the exact error message please?
0
All Courses

From novice to tech pro — start learning today.