Re: PowerCobol



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.


.



Relevant Pages

  • Re: PowerCobol
    ... I can make thi: ... I want to do the same, but calling "text.chm" for help files and ... Regards ...
    (comp.lang.cobol)
  • Re: PowerCobol
    ... > Thanks Frederico, ... > I can make thi: ... > I want to do the same, but calling "text.chm" for help files and ...
    (comp.lang.cobol)