Re: PowerCobol
- From: "HeyBub" <heybubNOSPAM@xxxxxxxxx>
- Date: Fri, 27 Jan 2006 11:42:07 -0600
ProdCil wrote:
> Thanks Frederico,
>
> I can make thi:
> INVOKE pow-self "Execute" USING "notepad.exe text.txt"
>
> I want to do the same, but calling "text.chm" for help files and
> "text.pdf", for example.
>
> If i do:
> INVOKE pow-self "Execute" USING "AcroRd32.exe text.pdf"
>
> don't work.
Here's how we get access to a helpfile:
02 HANDLE PIC S9(9) COMP-5.
02 HELPFILE PIC X(255).
02 FILLER PIC X VALUE LOW-VALUES.
02 HELPHANDLE PIC S9(9) COMP-4.
02 HELPREQUEST.
05 HELPREQUEST-A PIC S9(4) COMP-5.
05 FILLER PIC X(2) VALUE LOW-VALUES.
COMPUTE SUBCOMMAND = FUNCTION NUMVAL(TOPIC-NUMBER-X).
MOVE "Hwnd" of pow-self TO HANDLE
MOVE 1 TO HELPREQUEST-A.
CALL "WinHelpA" WITH STDCALL LINKAGE USING
BY VALUE HANDLE
BY REFERENCE HELPFILE
BY VALUE HELPREQUEST-A
BY VALUE SUBCOMMAND.
.
- References:
- PowerCobol
- From: ProdCil
- Re: PowerCobol
- From: Frederico Fonseca
- Re: PowerCobol
- From: ProdCil
- PowerCobol
- Prev by Date: Re: GoTo in Java
- Next by Date: Re: GoTo in Java
- Previous by thread: Re: PowerCobol
- Next by thread: Re: PowerCobol
- Index(es):
Relevant Pages
|
|