🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

SHGetSpecialFolderLocation!

#14251
From: Safari
Date: Sun, 24 Aug 2003 16:11
39 lines
1718 bytes
Thanks Rodolfo,
Question :-)

I want to soty my list but i can't!
ListView->SortType = TSortType() << Listactns::stNone;
ListView->SortType = TSortType() << Listactns::stBoth;
// Or others ...

Note:
// ListsView.SortType := stNone;
// ListsView.SortType := stBoth;
// Or other

is OK.

Thanks again,
Safari

| But it is not :-)

| String GetSpecialFolderPath(HWND Handle, int FolderNumber)
| {
|    LPITEMIDLIST  pID_List;
|    String R = "";
|
|    if (!SHGetSpecialFolderLocation(Handle, FolderNumber, &pID_List))
|    {
|        char SpecialFolderPath[MAX_PATH + 1] = {0};
|
|        if (SHGetPathFromIDList(pID_List, SpecialFolderPath))
|            R = SpecialFolderPath;
|
|        CoTaskMemFree(pID_List);
|    }

|   return R;
| }

| Rodolfo
Technical Details
Message-ID: <3F48E399.60108@alloymail.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,7ce38efab0f8f813
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-08-24 14:16:16 PST
Message-ID: <3F48E399.60108@alloymail.com>
Date: Sun, 24 Aug 2003 20:41:05 +0430
From: Safari <Safari@alloymail.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: SHGetSpecialFolderLocation!
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 194.225.63.197
X-Trace: newsgroups.borland.com 1061759590 194.225.63.197 (24 Aug 2003 14:13:10 -0700)
Lines: 40
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail