Article View: borland.public.cppbuilder.nativeapi
Article #14266SHGetSpecialFolderLocation!
From: Safari
Date: Tue, 19 Aug 2003 16:50
Date: Tue, 19 Aug 2003 16:50
19 lines
1469 bytes
1469 bytes
Hello,
Error! Why?
I use "ShlOBJ.hpp" & "ShellApi.hpp" but return me error!
Error: E2451 Undefined symbol 'LPITEMIDLIST'
AnsiString __fastcall GetPaths(int Folder)
{
LPITEMIDLIST List = NULL;
char Path[MAX_PATH + 1] = {0};
if (SHGetSpecialFolderLocation(0, Folder, &List) == NOERROR)
{
if (SHGetPathFromIDList(List, Path))
return Path;
CoTaskMemFree(List);
}
}
Thanks,
Safari
Technical Details
Message-ID:
<3F425543.9040507@alloymail.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,7ce38efab0f8f813,start X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-08-19 14:28:39 PST Message-ID: <3F425543.9040507@alloymail.com> Date: Tue, 19 Aug 2003 21:20:11 +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.253 X-Trace: newsgroups.borland.com 1061327708 194.225.63.253 (19 Aug 2003 14:15:08 -0700) Lines: 20 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail