🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: URL Offsets Prevent URLs from being passed to a browser

#9216
From: Randall Parker
Date: Mon, 26 Jul 2004 05:14
20 lines
1784 bytes
Update: I switched to Opera as the default browser for http and html files and it 
again gets files passed to it for the simpler case of file paths that end in .htm but 
not the case whethere is a # offset. The browser isn't even getting focus or bringing 
up a bad path. It simply is getting no notification.

Randall Parker wrote:

> But if I have:
> 
>    AnsiString UrlStr = "file://" + ExtractFilePath(Application->ExeName) 
> + "myfile.htm#HotKeys";
>    ShellExecute(NULL,"open",UrlStr.c_str(),0,0,SW_SHOWDEFAULT);
> 
> or:
> 
>    AnsiString UrlStr = "file://" + ExtractFilePath(Application->ExeName) 
> + "myfile.htm%23HotKeys";
>    ShellExecute(NULL,"open",UrlStr.c_str(),0,0,SW_SHOWDEFAULT);
> 
> then the browser (Mozilla FireFox) doesn't get invoked.
Technical Details
Message-ID: <41049316$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news.zanker.org!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <41048d77$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,80cfdee9a8d50af3
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Sun, 25 Jul 2004 22:14:12 -0700
From: Randall Parker <STOPtechiepundit@EVILfuturePOXpunditSPAM.com>
User-Agent: Mozilla Thunderbird 0.7 (Windows/20040616)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: URL Offsets Prevent URLs from being passed to a browser
References: <41048d77$1@newsgroups.borland.com>
In-Reply-To: <41048d77$1@newsgroups.borland.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 4.40.49.194
Message-ID: <41049316$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1090818838 4.40.49.194 (25 Jul 2004 22:13:58 -0700)
Lines: 20
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news.zanker.org!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail