Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

_ SHBrowseForFolder Shell API call.

Posted on 2001-08-11
2
Medium Priority
?
439 Views
Last Modified: 2012-06-21
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 ?.
0
Comment
Question by:Wein
2 Comments
 
LVL 1

Expert Comment

by:johnedwards2
ID: 6375654
Could you print the exact error message please?
0
 
LVL 14

Accepted Solution

by:
AlexVirochovsky earned 400 total points
ID: 6375674
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

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
Suggested Courses
Course of the Month11 days, 23 hours left to enroll

916 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