Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SHBrowseForFolder API from VFP
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00495465
Message ID:
00495490
Vues:
16
>Hi,
>
>I want to browse for a folder from VFP. I can use GETDIR(), but I'd like to
>provide the option to create a new folder.
>
>The API "SHBrowseForFolder" appears to be just what I need... but it makes
>extensive use of structures.
>
>I looked at "Q181289: HOWTO: Pass Structures to a DLL"
>(http://support.microsoft.com/support/kb/articles/q181/2/89.asp) but this
>passes empty structures. "SHBrowseForFolder" expects a pointer to an already
>populated BROWSEINFO structure.
>
>Has anyone used this API from VFP? If so, I'd really appreciate any advice
>or sample code!
>
>Thanks all!
>FL
>(FrtizLang_000@hotmail.com)

Ed Rauh and Christof Lange have programming here that deals with creating structures and dealing with pointers. You can download their files in the download section. However, it's probably easier to click on their names, and see the list of their files and other contributions by clicking on the "Contribution Summary" option that'll appear on the screen. An easy way to get to this point, is to click the Reports button, then the "Top 50 Contributors - MVP" report.

Another option might be the use of the Shell.Application object. I wrote an article on this that appeared in the July 2000 issue of the VFUG newsletter. It's available on-line at www.vfug.org. The biggest problem (implementation is easy) is making sure that target machine(s) have the object available, and, if not, getting it installed.
George

Ubi caritas et amor, deus ibi est
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform