🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #13289

Re: SHBrowseForFolder, BFFM_SETSELECTION, UNC paths (Windows bug?)

#13289
From: Remy Lebeau (TeamB)
Date: Sat, 18 Oct 2003 06:40
36 lines
2130 bytes
"Dennis Jones" <djones@nospam.com> wrote in message
news:3f90daa2$1@newsgroups.borland.com...

> Dang.  It must be an NT4 glitch.

Possible.

> When I execute this code in NT4, it *always* highlights the
> "Desktop" item (which is at the root of the tree), and expands
> the "Desktop\\Network Neighborhood\\Entire Network" branch.

My tests also expanded that node (or the particular OS's equivilent of it,
anyway) and then proceeded to locate and open the machine name underneath it
as expected.

> In my defense, I didn't write any of this code (except for the button
> click event)...

Ah, ok.

> it came straight from the newsgroup archives, and since I am just
> trying to get it to "work," I made no attempt to clean it up or fix
> any bugs.

Well, there are many things that can be done to clean up the code, make it
safer, etc., but I'll leave that as a separate exercise of its own.

> Yes, and normally I would be careful to test for those kinds
> of errors, but this is really just quick and dirty proof-of-concept
> code at the moment.

Understood.


Gambit
Technical Details
Message-ID: <3f90dfd5$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3f90be9d@newsgroups.borland.com> <3f90cbe6@newsgroups.borland.com> <3f90daa2$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,8dd37dadfc9c37c0
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-10-17 23:38:52 PST
From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3f90be9d@newsgroups.borland.com> <3f90cbe6@newsgroups.borland.com> <3f90daa2$1@newsgroups.borland.com>
Subject: Re: SHBrowseForFolder, BFFM_SETSELECTION, UNC paths (Windows bug?)
Date: Fri, 17 Oct 2003 23:40:32 -0700
Lines: 38
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 67.22.137.75
Message-ID: <3f90dfd5$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1066459093 67.22.137.75 (17 Oct 2003 23:38:13 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail