Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

BrowseForFolder

dithery
ビギナー
657件の閲覧回数
A program uses the Windows function SHBrowseForFolder to display and select either a file or a directory, by including the value BIF_BROWSEINCLUDEFILES (= #4000) in the uFlags member of TYPE (BROWSEINFO). This works under Win98 and above but not in Win95. Presumably SHBrowseForFolder (in Shell32.dll?) was upgraded post Win95.

I could get the user to specify a file or folder and use GetOPenFileName or SHBrowseForFolder as appropriate but this gets rather messy. Is there a simpler way under Win95?

I am using Digital VF.

Thanks in advance
dithery
0 件の賞賛
2 返答(返信)
Jugoslav_Dujic
高評価コントリビューター II
657件の閲覧回数
Um... as far as I know, no. You can probably roll your own treeview or find one on the Internet (possibly on
Codeguru, but I didn't verify).

But why do you want to support Win95 at all? Even Microsoft doesn't do it, long time ago. Besides, the condition for BIF_BROWSEINCLUDEFILES seems to be v4.71 of shell32.dll (=IE4). The computer lacking IE4 can justifiedly be called a dinosaur.

Jugoslav
dithery
ビギナー
657件の閲覧回数
There is a certain utility company around here that uses Win95, hence the wish to support it along the lines of my post.

Thanks for your suggestion of Codeguru. There are some examples in C, based on the Common FileOpen Dialog, which I will try and adapt.

dithery
返信