Link to home
Start Free TrialLog in
Avatar of dafoki
dafoki

asked on

Common Dialog Boxes

How do i open this common dialog box:
http://www.geocities.com/aviran_a/image1.jpg

no MFC
VC++
Avatar of MichaelS
MichaelS

Which dialog box? Can't get nothing on that link. Can put some functions here, just guessing.

SHBrowseForFolder
GetOpenFileName
...

Can you make yourself more clear?
Avatar of dafoki

ASKER

err, copy to address box in your browser www.geocities.com/aviran_a/image1.jpg (with out the http://) and you'll be able to see the image (geocities sucks!)

i think it's SHBrowseForFolder
>(geocities sucks!)
yes :(

>i think it's SHBrowseForFolder
yes :)

do you need some more information about that function?
Avatar of dafoki

ASKER

should i include some headers?
i get some error when i try to compile:
BROWSEINFO : undeclared identifier
SHBrowseForFolder : undeclared identifier
yep, sure

include Shlobj.h and link with Shell32.lib
Avatar of dafoki

ASKER

how do i customize the dialog box?
i need to add some buttons to it
Avatar of dafoki

ASKER

one more thing, the dialog returns only the directory name
how do i get the full path to that directory?
ASKER CERTIFIED SOLUTION
Avatar of jkr
jkr
Flag of Germany image

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
Force-accepted by
Netminder
CS Moderator