Andrew Many thanks for your reply. Unfortunately that code uses wscript and I cannot be sure that scripting will be available.
The VB code works beautifully and the VFP works fine but only with the old-style dialog :( Paul Andrew Stirling wrote: > Paul > > Have you had a look here: > http://www.tek-tips.com/faqs.cfm?fid=4449 > re Enumerate Available Shares and Current Mapping > > Andrew Stirling > 01250 874580 > http://www.calcpay.co.uk > HMRC Accredited UK payroll program > > > Paul Newton wrote: > >> Hi all >> >> I want to present a user with a dialog from which they can select a >> network share and I found the following: >> >> For VFP: http://www.tek-tips.com/faqs.cfm?fid=1760 >> >> For VB: http://vbnet.mvps.org/index.html?code/browse/browsenetwork.htm >> >> Critically the BROWSEINFO struct has a property (?) ulFlags. One of the >> options for this is BIF_NEWDIALOGSTYLE (0x40 in VFP, &H40 in VB). >> >> In VB I can get it working (with the new dialog style) but in VFP I get >> an error "Declare DLL call caused an exception". >> >> Any help would be highly appreciated - I can send a zip with all the >> sources I am using if anybody would be willing to have a look at it ... >> >> _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[email protected] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

