🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.web
Article #826

Re: Bad ShellExecute for new

#826
From: caleb
Date: Wed, 08 Feb 2006 11:01
16 lines
1285 bytes
"Artaud" <artaud.patrick@wanadoo.fr> wrote:
>Hello,
>I try to open an html file wiith the shellExecute method but I obtain 
>nothing.
>This is my code:
>//----------------------------
>AnsiString chem;
>chem=ExtractFilePath(Application->ExeName)+"aide\\sommaire.html";
>ShellExecute(0,"open",chem.c_str(),NULL,NULL,SW_SHOWNORMAL);

does chem look ok?

do you need +"\\aide\\som...?

also I think you can get a result code from shellexecute
Technical Details
Message-ID: <43e9dd80$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <43e93f94$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,5cff43ecf81dd1ac
X-Google-Attributes: gidfeeec,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "caleb" <no@spam.com>
Sender: "caleb" <no@spam.com>
Reply-To: "caleb" <no@spam.com>
Subject: Re: Bad ShellExecute for new
Newsgroups: borland.public.cppbuilder.internet.web
X-User-Info: 71.99.27.59     
References:  <43e93f94$1@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.66
Message-ID: <43e9dd80$1@newsgroups.borland.com>
Date: 8 Feb 2006 04:01:04 -0700
X-Trace: newsgroups.borland.com 1139400064 207.105.83.66 (8 Feb 2006 04:01:04 -0700)
Lines: 16
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail