🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: ShellExecute w/o IExplorer?

#16632
From: Remy Lebeau (TeamB)
Date: Fri, 02 May 2003 01:57
23 lines
2005 bytes
"Victor G. Baron" <vgbaron@hotmail.com> wrote in message
news:7cj3bv8anepk0fu9em3u43h3qr3usrjosf@4ax.com...

> Is there a way to use ShellExecute() to launch an URL
> *without* having it open in IE first?.

ShellExecute() is not dependant on IE specifically.  The code you have will
cause the *default* browser currently registered on the machine to execute
the URL, whether that browser is IE or Netscape or Opera or whatever.

Now, with that said, what exactly are you looking for?  Please clearify.  It
sounds like maybe you want to submit the URL without using a browser at all?
If so, then you need to use an actual HTTP component instead of
ShellExecute().  Indy (http://www.nevrona.com/indy) and ICS
(http://www.overbyte.be) both have HTTP components, and there are many other
third party components available for download if you search around a bit.
Or else use the native TCP components to implement the HTTP protocol
manually, if you want.  The basics of the HTTP protocol are documented in
RFC 1945 and 2616.


Gambit
Technical Details
Message-ID: <3eb1d04a$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-09!supernews.com!iad-peer.news.verio.net!news.verio.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <7cj3bv8anepk0fu9em3u43h3qr3usrjosf@4ax.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,c571a07d3c6d4367
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-05-01 19:48:01 PST
From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <7cj3bv8anepk0fu9em3u43h3qr3usrjosf@4ax.com>
Subject: Re: ShellExecute w/o IExplorer?
Date: Thu, 1 May 2003 18:57:58 -0700
Lines: 25
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: <3eb1d04a$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1051840586 207.175.226.26 (1 May 2003 18:56:26 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-09!supernews.com!iad-peer.news.verio.net!news.verio.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail