- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Based on the sample program supplied by Intel, I learned how to use the API function GetOpenFilename and GetSaveFilename and wrote a wrapper around them to enable simple use in a Quickwin application. Now, I would like to use SHBrowseForFolder. But there is no sample program that demonstrates this, and I find the Windows instructions for using it to be daunting in comparison. Does anybody have an example of use, ideally illustrating a wrapper that could be used for simple Quickwin calling? In other words, so that non windows programmers can use it?
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks Sergey. This helps, but not enough (I need a lot). What module do I USE to get access to the function, and how do I declare the structure m_bi and the return status m_pldl? (I'm not good at translating C to Fortran.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You may be able to find what you need here http://software.intel.com/en-us/forums/topic/275039
This was a thread posted back in 2012
(I googled for "shbrowseforfolder fortran" and this was the first result.)
Les
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
<Enters nostalgia mode>
I was programming before there was an internet! Computer room the size of a small warehouse. 9-track tapes. Overnight test runs. Core dumps on mountains of paper. Ah those were the days.
"Real programmers don't eat quiche" (just Google it!)
:-)
</Leaves nostalgia mode and returns to day job>
Les
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Haha... Instantly wrote that on a Post-It and sticked it below my screen!
o Real Programmers don't comment their code.
If it was hard to write, it should be hard to understand and harder to modify.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Back on the topic: Using SHBrowseForFolder
Thanks Les for the link. I did find it useful. After some effort, I was able to get the routine working (thanks to suggestions by Anthony Richards) but there are still two problems: (1) there is no apparent way to specify an initial folder; (2) the csidl_flag_create attribute to SHILCreateFromPath, which is supposed to allow user to specify a non-existing path which will then be created, does not work.
Is there any further development here? And, I observe from MSN documentation:
To enable the user to navigate the namespace and select a folder, your application can use the IFileDialog interface. Calling this interface with the FOS_PICKFOLDERS flag launches the Open Files common dialog box in "pick folders" mode.
For Windows Vista and later, this is the recommended way to pick folders.
So maybe there is a better (new,improved!?) method of handling this now?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There's no need for the helper to be in a DLL!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Write some C/C++ code, compile it, link it with your Fortran ;)
Pet peeve of mine - unnecessary DLL's.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page