Article View: borland.public.cppbuilder.nativeapi
Article #5542Re: AccessVialoation on SHGetSpecialFolderLocation
From: Jonathan Benedicto
Date: Fri, 05 Aug 2005 22:20
Date: Fri, 05 Aug 2005 22:20
14 lines
1531 bytes
1531 bytes
"George Francis" <george_f@hotmail.com> wrote in message news:42f3e0e2$1@newsgroups.borland.com... > Thanks but I've discovered the actual exception is being thrown from the > last line of this code: > > IUnknown* Unknown = CreateComObject(CLSID_ShellLink); > IShellLink* ISLink = ((IShellLink*) Unknown ); > ISLink->SetPath( _argv[0].c_str()); Is that your code ? Because it seems like that last line ought to be: ISLink->SetPath( _argv[0] ); Jonathan
Technical Details
Message-ID:
<42f3e63b$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<42f3d881$1@newsgroups.borland.com> <42f3db7c$1@newsgroups.borland.com> <42f3e0e2$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,7f4466ab7adf1876 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Jonathan Benedicto" <incorrect@no.server> Newsgroups: borland.public.cppbuilder.nativeapi References: <42f3d881$1@newsgroups.borland.com> <42f3db7c$1@newsgroups.borland.com> <42f3e0e2$1@newsgroups.borland.com> Subject: Re: AccessVialoation on SHGetSpecialFolderLocation Date: Fri, 5 Aug 2005 18:20:44 -0400 Lines: 16 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2670 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670 X-RFC2646: Format=Flowed; Response NNTP-Posting-Host: 69.158.98.105 Message-ID: <42f3e63b$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1123280443 69.158.98.105 (5 Aug 2005 15:20:43 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail