🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Open with dialog

#15600
From: Remy Lebeau (TeamB)
Date: Sun, 22 Jun 2003 02:40
21 lines
2179 bytes
"Adam Versteegen" <No@email.com> wrote in message
news:3ef4140b@newsgroups.borland.com...

> It seems odd that the openas verb would
> return 'no association' seeing as thats the
> whole point behind passing in 'openas'.

It makes sense when you understand what is actually happening behind the
scenes.  The "openas" verb is still a verb like any other, and as such must
still have the appropriate Registry settings in place to support it.  It
turns out that the "openas" verb is associated only with the "Unknown"
subkey, in other words is only for file extensions that don't actually exist
in the registry at all.  If you pass in a filename with an extension that
does exist in the Registry but simply doesn't have the "open" and "openas"
associations set up for itself, then that would explain the symptoms that
you are seeing.  If, however, you pass in a filename with a truely unknown
extension, then "openas" should be triggered correctly.


Gambit
Technical Details
Message-ID: <3ef51615$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!64.152.100.70.MISMATCH!sjc70.webusenet.com!news.webusenet.com!elnk-pas-nf2!newsfeed.earthlink.net!newsfeed.news2me.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <3ef23b06@newsgroups.borland.com> <3ef248f7$1@newsgroups.borland.com> <3ef2a89b@newsgroups.borland.com> <3ef2ab8c$1@newsgroups.borland.com> <3ef4140b@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,863d8bda245bcc45
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-06-21 19:41:24 PST
From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3ef23b06@newsgroups.borland.com> <3ef248f7$1@newsgroups.borland.com> <3ef2a89b@newsgroups.borland.com> <3ef2ab8c$1@newsgroups.borland.com> <3ef4140b@newsgroups.borland.com>
Subject: Re: Open with dialog
Date: Sat, 21 Jun 2003 19:40:11 -0700
Lines: 23
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 207.175.226.26
Message-ID: <3ef51615$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1056249365 207.175.226.26 (21 Jun 2003 19:36:05 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!64.152.100.70.MISMATCH!sjc70.webusenet.com!news.webusenet.com!elnk-pas-nf2!newsfeed.earthlink.net!newsfeed.news2me.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail