Article View: borland.public.cppbuilder.nativeapi
Article #5538AccessVialoation on SHGetSpecialFolderLocation
From: George Francis
Date: Fri, 05 Aug 2005 21:22
Date: Fri, 05 Aug 2005 21:22
11 lines
1342 bytes
1342 bytes
Hello, I am trying to use the following code to read the user's Send To directory: char cBuf[MAX_PATH]; LPITEMIDLIST pidl; SHGetSpecialFolderLocation(0, CSIDL_SENDTO, &pidl); SHGetPathFromIDList(pidl, cBuf); It compiles OK, but I get an access violation Exception on the call to SHGetSpecialFolderLocation. Can anyone suggest why?
Technical Details
Message-ID:
<42f3d881$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!feeder2.on.meganewsservers.com!meganewsservers.com!textfeed1.on.meganewsservers.com!38.119.100.83.MISMATCH!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,7f4466ab7adf1876,start X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Fri, 05 Aug 2005 17:22:10 -0400 From: George Francis <george_f@hotmail.com> User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: AccessVialoation on SHGetSpecialFolderLocation Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 209.82.52.98 Message-ID: <42f3d881$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1123276929 209.82.52.98 (5 Aug 2005 14:22:09 -0700) Lines: 11 Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!feeder2.on.meganewsservers.com!meganewsservers.com!textfeed1.on.meganewsservers.com!38.119.100.83.MISMATCH!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail