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

PB9 - PB10.5 Function not work

48 views
Skip to first unread message

Paolo I-SAVO

unread,
Dec 14, 2006, 2:26:58 AM12/14/06
to
Good morning to all

in PB9 I used a function declared like external function in order to open a
PDF file into my application.
The function is:

FUNCTION long ShellExecuteA( ulong hWnd, string Operation, string lpFile,
string lpParameters, string lpDirectory, int nShowCmd ) LIBRARY
"shell32.dll"


and I call it with the follow line

ShellExecuteA( 0 , "open", ls_FileName , ls_null, ls_null, 1 )


With PB9 the function work very well. In PB 10.5 it doesn't work. When I
press the button nothing to do.

Why?

Thanks a lot in advance


dha...@hotmail.com

unread,
Jan 16, 2007, 2:03:27 PM1/16/07
to
Powerbuilder 10.5 uses Unicode instead of ASCII. Change your function
to ShellExecuteW. This should fix your problem.

Paolo I-SAVO

unread,
Jan 23, 2007, 5:44:41 AM1/23/07
to
Problem resolved.....
thank you very very much

<dha...@hotmail.com> ha scritto nel messaggio
news:1168974206....@11g2000cwr.googlegroups.com...

0 new messages