Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

ShellExecute PB 11

571 views
Skip to first unread message

Will

unread,
Dec 15, 2009, 10:11:50 AM12/15/09
to
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

unread,
Dec 15, 2009, 10:46:52 AM12/15/09
to
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:

--

Will

unread,
Dec 15, 2009, 11:00:02 AM12/15/09
to
> --- Hide quoted text -
>
> - Show quoted text -

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

William

0 new messages