🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: AccessVialoation on SHGetSpecialFolderLocation

#5543
From: George Francis
Date: Fri, 05 Aug 2005 22:23
21 lines
1713 bytes
Jonathan Benedicto wrote:
> "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 
> 
> 

Its ok Im all sorted now thx.
Technical Details
Message-ID: <42f3e6e4$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-mail
References: <42f3d881$1@newsgroups.borland.com> <42f3db7c$1@newsgroups.borland.com> <42f3e0e2$1@newsgroups.borland.com> <42f3e63b$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
Date: Fri, 05 Aug 2005 18:23:34 -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: Re: AccessVialoation on SHGetSpecialFolderLocation
References: <42f3d881$1@newsgroups.borland.com> <42f3db7c$1@newsgroups.borland.com> <42f3e0e2$1@newsgroups.borland.com> <42f3e63b$1@newsgroups.borland.com>
In-Reply-To: <42f3e63b$1@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 209.82.52.98
Message-ID: <42f3e6e4$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1123280612 209.82.52.98 (5 Aug 2005 15:23:32 -0700)
Lines: 21
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