Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

ShellExecute PB 11

3 posts in Powerscript Last posting was on 2009-12-15 16:00:02.0Z
Will Posted on 2009-12-15 15:11:50.0Z
From: Will <william.viktora@tc.gc.ca>
Newsgroups: sybase.public.powerbuilder.powerscript
Subject: ShellExecute PB 11
Date: Tue, 15 Dec 2009 07:11:50 -0800 (PST)
Organization: http://groups.google.com
Lines: 24
Message-ID: <8e2b3dde-c0f2-45aa-9ede-020330344740@j19g2000yqk.googlegroups.com>
NNTP-Posting-Host: 198.103.96.11
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
X-Trace: posting.google.com 1260889911 16802 127.0.0.1 (15 Dec 2009 15:11:51 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Tue, 15 Dec 2009 15:11:51 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: j19g2000yqk.googlegroups.com; posting-host=198.103.96.11; posting-account=3Rh8ygoAAABlt7_53rcZwghQA96nvBgO
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727),gzip(gfe),gzip(gfe)
Path: forums-1-dub!forums-master!newssvr.sybase.com!news-sj-1.sprintlink.net!news-peer1.sprintlink.net!newsfeed.yul.equant.net!novia!news-out.readnews.com!transit3.readnews.com!postnews.google.com!j19g2000yqk.googlegroups.com!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.powerscript:27207
Article PK: 793622

I have migrated an application from PB 9 to PB 11 and use the API call
ShellExecute to print out a PDF file using PDF Creator. The
ShellExecute call works in PB9 but not in PB11, there have been no
modifications in the either of the code just the migration of apps.
Noted below are the declarations in both PB9 and PB11 applications:

Function Long ShellExecute (Long hWnd, String lpOperation, String
lpFile, String lpParameters, String lpDirectory, Long nShowCmd)
Library "shell32.dll" Alias For "ShellExecuteA"

Call
// API prototype
ShellExecute ( ll_handle, 'print', ls_filename, ls_null, ls_directory,
3)

PB9: 9.0.3 -- build 8004
PB11: 11.2 -- build 8616

Obviously there is an issue with ShellExecute, is there a different
ShellExecute API call for PB11?

Thanks,

William.


Arthur Hefti Posted on 2009-12-15 15:46:52.0Z
From: "Arthur Hefti" <arthur@catsoft.ch>
Subject: Re: ShellExecute PB 11
Newsgroups: sybase.public.powerbuilder.powerscript
References: <8e2b3dde-c0f2-45aa-9ede-020330344740@j19g2000yqk.googlegroups.com>
User-Agent: XanaNews/1.18.1.6
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <4b27af6c@forums-1-dub>
Date: 15 Dec 2009 07:46:52 -0800
X-Trace: forums-1-dub 1260892012 10.22.241.152 (15 Dec 2009 07:46:52 -0800)
X-Original-Trace: 15 Dec 2009 07:46:52 -0800, vip152.sybase.com
Lines: 37
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.powerscript:27208
Article PK: 761764

It's Alias For "ShellExecuteW" as PB 11 is unicode. Of course you could
use "ShellExecuteA;Ansi" but I would use this only if there's no
unicode implemenation of a function.

Arthur

Will wrote:

> I have migrated an application from PB 9 to PB 11 and use the API call
> ShellExecute to print out a PDF file using PDF Creator. The
> ShellExecute call works in PB9 but not in PB11, there have been no
> modifications in the either of the code just the migration of apps.
> Noted below are the declarations in both PB9 and PB11 applications:
>
> Function Long ShellExecute (Long hWnd, String lpOperation, String
> lpFile, String lpParameters, String lpDirectory, Long nShowCmd)
> Library "shell32.dll" Alias For "ShellExecuteA"
>
> Call
> // API prototype
> ShellExecute ( ll_handle, 'print', ls_filename, ls_null, ls_directory,
> 3)
>
> PB9: 9.0.3 -- build 8004
> PB11: 11.2 -- build 8616
>
> Obviously there is an issue with ShellExecute, is there a different
> ShellExecute API call for PB11?
>
> Thanks,
>
> William.

--


Will Posted on 2009-12-15 16:00:02.0Z
From: Will <william.viktora@tc.gc.ca>
Newsgroups: sybase.public.powerbuilder.powerscript
Subject: Re: ShellExecute PB 11
Date: Tue, 15 Dec 2009 08:00:02 -0800 (PST)
Organization: http://groups.google.com
Lines: 44
Message-ID: <6a9de01e-f83b-489a-aa99-d2992e4d160a@k9g2000vbl.googlegroups.com>
References: <8e2b3dde-c0f2-45aa-9ede-020330344740@j19g2000yqk.googlegroups.com> <4b27af6c@forums-1-dub>
NNTP-Posting-Host: 198.103.96.11
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1260892802 1301 127.0.0.1 (15 Dec 2009 16:00:02 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Tue, 15 Dec 2009 16:00:02 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: k9g2000vbl.googlegroups.com; posting-host=198.103.96.11; posting-account=3Rh8ygoAAABlt7_53rcZwghQA96nvBgO
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727),gzip(gfe),gzip(gfe)
Path: forums-1-dub!forums-master!newssvr.sybase.com!news-sj-1.sprintlink.net!news-peer1.sprintlink.net!newsfeed.yul.equant.net!transit4.readnews.com!news-out.readnews.com!news-xxxfer.readnews.com!postnews.google.com!k9g2000vbl.googlegroups.com!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.powerscript:27209
Article PK: 793623


On Dec 15, 10:46 am, "Arthur Hefti" <art...@catsoft.ch> wrote:
> It's Alias For "ShellExecuteW" as PB 11 is unicode. Of course you could
> use "ShellExecuteA;Ansi" but I would use this only if there's no
> unicode implemenation of a function.
>
> Arthur
>
>
>
>
>
> Will wrote:
> > I have migrated an application from PB 9 to PB 11 and use the API call
> > ShellExecute to print out a PDF file using PDF Creator. The
> > ShellExecute call works in PB9 but not in PB11, there have been no
> > modifications in the either of the code just the migration of apps.
> > Noted below are the declarations in both PB9 and PB11 applications:
>
> > Function Long ShellExecute (Long hWnd, String lpOperation, String
> > lpFile, String lpParameters, String lpDirectory, Long nShowCmd)
> > Library "shell32.dll" Alias For "ShellExecuteA"
>
> > Call
> > // API prototype
> > ShellExecute ( ll_handle, 'print', ls_filename, ls_null, ls_directory,
> > 3)
>
> > PB9: 9.0.3 -- build 8004
> > PB11: 11.2 -- build 8616
>
> > Obviously there is an issue with ShellExecute, is there a different
> > ShellExecute API call for PB11?
>
> > Thanks,
>
> > William.
>
> --- Hide quoted text -
>
> - Show quoted text -

That worked Arthur, thank you very much for your help.

William