>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.