🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.delphi.nativeapi
Article #205

Re: Problem with W2k, Adobe and shellexecute HELP

#205
From: Chris Morgan
Date: Fri, 23 Jan 2004 17:17
27 lines
1733 bytes
"Michael W. Diebold" <mike@shsbc.com> wrote in message
news:401138fc$1@newsgroups.borland.com...
> Trying to open a .pdf file with shellexecute only brings up Adobe
splash
> screen then quits.  Does anybody have a solution to this.
>
> ShellExecute(Handle, PChar('open'), PChar(TheFileName),nil , nil,
> sw_shownormal);
>
> I created a .bat file that opens Adobe, and called that with
Shellexecute,
> and got the same result.  I've also tried the third party componenet
> AppExec, and that produced the same results as well.

For some reason Adobe apps tend to be very sensitive to the nShowCmd
variable.
Most apps take no notice of this, but Adobe apps must be non-standard
in
some way.

Try different values for this variable (eg SW_SHOWDEFAULT) to see if
this makes
any difference.

Cheers,

Chris
Technical Details
Message-ID: <40115651$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <401138fc$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f94dd,94781e641400d757
X-Google-Attributes: gidf94dd,public
X-Google-ArrivalTime: 2004-01-23 09:40:38 PST
From: "Chris Morgan" <chris.nospam at lynxinfo.co.uk>
Newsgroups: borland.public.delphi.nativeapi
References: <401138fc$1@newsgroups.borland.com>
Subject: Re: Problem with W2k, Adobe and shellexecute HELP
Date: Fri, 23 Jan 2004 17:17:12 -0000
Lines: 29
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: 217.205.133.50
Message-ID: <40115651$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1074878033 217.205.133.50 (23 Jan 2004 09:13:53 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail