Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Browse for Folder
Message
From
08/02/2002 05:29:14
 
 
To
08/02/2002 03:47:57
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00617156
Message ID:
00617184
Views:
18
This message has been marked as the solution to the initial question of the thread.
>Hi,
>
>Please Help me,
>
>How can I use Function(s) BrowseForFolder (printer, computer) within VFP ?
>I don't want to create FLL.

If the Shell.Application object is available (always present for Win95 OSR 2.1 or later with Active Desktop, Win98, WinME, Win2K and WinXP; for old boxes still using original Win95 or WinNT 4.0, the updated shell components are required - if the machine had IE 4.0 installed at some point, they're available; more recent IE versions lack the updated components needed by Shell.Application for it to run.

There's a sample in the FAQ that shows how to use the Shell.Application BrowseForFolder method as a replacement for the GETDIR() operation; you can also use the ActiveX component written by Bela Bodecs bbGetDir (in the Files Section here on UT) or the MS Common Dialogs ActiveX control that comes with VFP

I believe that Christof Lange's STRUCT class (Files Section) handles the structures needed to use the API call as well; I've implemented it using ClsHeap (Files Section) before (I prefer to use Shell.Application in my apps.) It's really pretty easy to handle as long as some method of allocating information in static buffers is available.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform