WinAPI or how to select a folder

I try to let my user select folder for some operations using standart windows dialog. There is a WInAPI function SHBrowseForFolder which can help, i suppose, but i don’t know how to use it…

Perepelkin Have you looked at CodeUnit 412 Common Dialog Management this use’s the Microsoft Common Dialog Control, version 6.0. for opening files. Steve

I have created a small OLE server that allows you to do just this. You can download it from www.mibuso.com. Please let me know what you think about it and if you have any troubles using it! Stephen, we are not talking about selecting files here!

Thank u, jhoek! It’s realy work. [:)] I have no trouble yet using it. And what about full documentation for this tool? As far as i undestood, this OLE server can be used not only for folders? [;)]

Sorry about that. I had just finished working with that codeunit when i logged in. and it is FRIDAY.